I\'m looking into different ways to minify my JavaScript code including the regular JSMin, Packer, and YUI solutions. I\'m really interested in the new Google Closure Compil
here's the (ultimate) answer for closure compiler :
/** @const */ var LOG = false; ... LOG && log('hello world !'); // compiler will remove this line ...
this will even work with SIMPLE_OPTIMIZATIONS and no --define= is necessary !
SIMPLE_OPTIMIZATIONS
--define=