clean up max_line_len

- never exceed specified limit
- otherwise warning is shown
- enabled only for final output

closes #1496
This commit is contained in:
alexlamsl
2017-02-18 22:44:53 +08:00
parent ec64acd2c8
commit 8898b8a0fe
4 changed files with 67 additions and 17 deletions

View File

@@ -115,7 +115,7 @@ exports.minify = function(files, options) {
// 5. output
var inMap = options.inSourceMap;
var output = {};
var output = { max_line_len: 32000 };
if (typeof options.inSourceMap == "string") {
inMap = JSON.parse(fs.readFileSync(options.inSourceMap, "utf8"));
}