optimization
This commit is contained in:
parent
3fdd8cc93e
commit
bc11d50bda
|
@ -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
|
||||
|
||||
|
|
14
project.clj
14
project.clj
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue