mathiasbynens / grunt-yui-compressor

A Grunt plugin for compressing JavaScript and CSS files using YUI Compressor.
http://git.io/grunt-yui-compressor
GNU General Public License v2.0
59 stars 13 forks source link

Add line-break option #8

Open timbeadle opened 11 years ago

timbeadle commented 11 years ago

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 commented 10 years ago

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