Add line-break option #8

Open
timbeadle opened this Issue Feb 12, 2013 · 1 comment

2 participants

@timbeadle

Various implementations of the YUI Compressor expose a line-break option, which tells the compressor to insert line breaks every n characters in minified scripts in order to keep line lengths down to a size that won't cause problems in certain browsers and/or source-control systems.

The yuicompressor node package supports this option, for instance:
https://npmjs.org/package/yuicompressor

More details on why line length is important in minified scripts/CSS:
http://stackoverflow.com/questions/10193851/why-do-we-have-newlines-in-minified-javascript

@alexanderdean

My colleague @fblundun is working on this one now... Expect a PR in a bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment