#10: cleaning lein cljsbuild targets
This commit is contained in:
parent
87e59dedcc
commit
7669aa2786
1 changed files with 10 additions and 7 deletions
15
project.clj
15
project.clj
|
|
@ -20,10 +20,13 @@
|
||||||
:plugins [[lein-cljsbuild "1.1.1"]
|
:plugins [[lein-cljsbuild "1.1.1"]
|
||||||
[lein-figwheel "0.5.0-2"]]
|
[lein-figwheel "0.5.0-2"]]
|
||||||
|
|
||||||
|
:clean-targets ^{:protect false} [:target-path
|
||||||
|
[:cljsbuild :builds :dev :compiler :output-dir]
|
||||||
|
[:cljsbuild :builds :prod :compiler :output-to]]
|
||||||
:cljsbuild {
|
:cljsbuild {
|
||||||
:builds [{:id "dev"
|
:builds {:dev
|
||||||
:source-paths ["src" "test"]
|
{:source-paths ["src" "test"]
|
||||||
;; :figwheel {:on-jsload "mount.example.cljs/on-js-reload"}
|
:figwheel true
|
||||||
|
|
||||||
:compiler {:main mount.example.cljs
|
:compiler {:main mount.example.cljs
|
||||||
:asset-path "js/compiled/out"
|
:asset-path "js/compiled/out"
|
||||||
|
|
@ -33,8 +36,8 @@
|
||||||
:source-map true
|
:source-map true
|
||||||
:source-map-timestamp true
|
:source-map-timestamp true
|
||||||
:cache-analysis true}}
|
:cache-analysis true}}
|
||||||
{:id "prod"
|
:prod
|
||||||
:source-paths ["src" "test"]
|
{:source-paths ["src" "test"]
|
||||||
:compiler {:output-to "test/resources/public/js/compiled/mount.js"
|
:compiler {:output-to "test/resources/public/js/compiled/mount.js"
|
||||||
:optimizations :advanced
|
:optimizations :advanced
|
||||||
:pretty-print false}}]}}})
|
:pretty-print false}}}}}})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue