Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any ideas on how to use Google Closure Compiler to combine multiple javascript files w/o any optimizations?

Any ideas on how to use Google Closure Compiler to combine multiple JavaScript files w/o any optimizations? Specifically, we want to use Closure to deploy two versions of our combined site JavaScript: release and debug. For release, we are using --compilation_level SIMPLE_OPTIMIZATIONS --manage_closure_dependencies which is working as intended. However, for debug, we would like our JavaScript to be combined intact/unmodified for easier debugging. It seems the minimum level of optimization is WHITESPACE_ONLY, any ideas would be appreciated.

like image 967
HOCA Avatar asked Jul 07 '10 21:07

HOCA


1 Answers

--formatting PRETTY_PRINT for beautifying
--debug true for meaningful names (after Advanced compilation)
like image 79
Stephen Chung Avatar answered Sep 28 '22 17:09

Stephen Chung