https://github.com/mishoo/UglifyJS
Revision 39d8880f2cd17c9b96bf73a3bcd7c27a89cf919e authored by micschro on 17 December 2014, 15:31:03 UTC, committed by micschro on 17 December 2014, 15:31:03 UTC
As `maybe_newline()` is only called when `might_need_semicolon` is `true`, the `max_line_len` option has no effect for files without (or with very few) semicolons (like JSON files). A simple for this problem is to use `maybe_newline()` instead of `noop` as the `newline()` function in non-beautify mode.
1 parent 5538ec7
History
Tip revision: 39d8880f2cd17c9b96bf73a3bcd7c27a89cf919e authored by micschro on 17 December 2014, 15:31:03 UTC
Fix max_line_len not working for JSON files
Tip revision: 39d8880
File Mode Size
bin
lib
test
tools
.gitignore -rw-r--r-- 19 bytes
.travis.yml -rw-r--r-- 102 bytes
LICENSE -rw-r--r-- 1.3 KB
README.md -rw-r--r-- 26.7 KB
package.json -rw-r--r-- 1019 bytes

README.md

back to top