cgutierrez/JsMinifier

remove line breaks from closure compiler output

Closed this issue · 3 comments

don't know if this runs any risks, but i dislike when the output isn't minified to a single line.

The Closure Compiler Java API has an option for this, CompilerOptions. setLineLengthThreshold(0) should do the trick

the plugin isn't using the java api...i don't believe it supports raw js.

This appears to actually be a feature of minifiers. UglifyJs does this as well.
checkout http://code.google.com/closure/compiler/faq.html#linefeeds

"Why are there random line feeds in compiled scripts?"