Limit Line Length With Requirejs + Uglify
We're using requirejs.optimize(config) with uglify2 in our build scripts to minify our production JavaScript code. We want to limit the minified line length to about 80 chars, so
Solution 1:
Finally managed to figure out the necessary combination:
config = {
optimize: 'uglify2',
uglify2: {
output: {
max_line_len: 80
}
},
// ...
}
Post a Comment for "Limit Line Length With Requirejs + Uglify"