optimization

This commit is contained in:
Andrey Shovkoplyas 2017-11-10 15:35:40 -05:00
parent 3fdd8cc93e
commit bc11d50bda
2 changed files with 9 additions and 7 deletions

View File

@ -107,6 +107,7 @@ Done, without errors.
run cljsbuild `lein descjop-once`.
```
$ lein descjop-once
@ -120,6 +121,7 @@ Successfully compiled "app/prod/js/cljsbuild-main.js" in 19.333 seconds.
...
Successfully compiled "app/prod/js/front.js" in 29.94 seconds.
```
Ignore WARNINGS during front.js compilation
### step 3

View File

@ -72,11 +72,11 @@
:target :nodejs
;; no optimize compile (dev)
:optimizations :none
;;:optimizations :none
:output-dir "app/dev/js/out_main"
;; simple compile (dev)
;;:optimizations :simple
:optimizations :simple
;; advanced compile (prod)
;;:optimizations :advanced
@ -121,11 +121,11 @@
:target :nodejs
;; no optimize compile (dev)
:optimizations :none
;;:optimizations :none
:output-dir "app/prod/js/out_main"
;; simple compile (dev)
;;:optimizations :simple
:optimizations :simple
;; advanced compile (prod)
;;:optimizations :advanced
@ -140,16 +140,16 @@
:assert true
:compiler {:output-to "app/prod/js/front.js"
:externs ["app/prod/js/externs_front.js"]
:warnings true
;;:warnings true
:elide-asserts true
;; :target :nodejs
;; no optimize compile (dev)
:optimizations :none
;;:optimizations :none
:output-dir "app/prod/js/out_front"
;; simple compile (dev)
;;:optimizations :simple
:optimizations :simple
;; advanced compile (prod)
;;:optimizations :advanced