cgutierrez / JsMinifier

Sublime Text plugin for javascript minification using Google Closure compiler
131 stars 18 forks source link

remove line breaks from closure compiler output #1

Closed dustinhorton closed 12 years ago

dustinhorton commented 12 years ago

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

concavelenz commented 12 years ago

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

dustinhorton commented 12 years ago

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

cgutierrez commented 12 years ago

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?"