Skip to content

Commit a816c3c

Browse files
committed
log optimization activity under :verbose
1 parent 5f66a78 commit a816c3c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/clj/cljs/closure.clj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -881,6 +881,8 @@ should contain the source for the given namespace name."
881881
(defn optimize
882882
"Use the Closure Compiler to optimize one or more JavaScript files."
883883
[opts & sources]
884+
(when (or *verbose* (:verbose opts))
885+
(util/debug-prn "Applying optimizations" (:optimizations opts)))
884886
(let [closure-compiler (make-closure-compiler)
885887
^List externs (load-externs opts)
886888
compiler-options (make-options opts)

0 commit comments

Comments
 (0)