Skip to content

Instantly share code, notes, and snippets.

@sander
Created June 27, 2015 09:41
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sander/d9cbd3b734d31491e040 to your computer and use it in GitHub Desktop.
Save sander/d9cbd3b734d31491e040 to your computer and use it in GitHub Desktop.
figwheel without leiningen, requires a figwheel-sidecar dependency
(require '[figwheel-sidecar.repl-api :as repl])
(def config
{:figwheel-options {}
:build-ids ["browser"]
:all-builds [{:id "browser"
:source-paths ["src/" "env/browser/"]
:figwheel {:on-jsload "id.client/main"}
:compiler {:output-to "public/js/app.js"
:output-dir "public/js"
:asset-path "js"
:main "id.client"}}]})
(repl/start-figwheel! config)
(repl/cljs-repl "browser")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment