Upgrade to `uglify-js@3`
This commit is contained in:
parent
ab4a6a2f5e
commit
b1a4bce3d8
|
@ -66,8 +66,11 @@ var compilerMinimalist = webpack({
|
||||||
});
|
});
|
||||||
|
|
||||||
function minify(name) {
|
function minify(name) {
|
||||||
var result = uglify.minify([DIST + '/' + name + '.js'], {
|
var code = String(fs.readFileSync(DIST + '/' + name + '.js'));
|
||||||
outSourceMap: name + '.map',
|
var result = uglify.minify(code, {
|
||||||
|
sourceMap: {
|
||||||
|
url: name + '.map'
|
||||||
|
},
|
||||||
output: {
|
output: {
|
||||||
comments: /@license/,
|
comments: /@license/,
|
||||||
max_line_len: 64000 // extra large because we have embedded code for workers
|
max_line_len: 64000 // extra large because we have embedded code for workers
|
||||||
|
|
|
@ -843,6 +843,12 @@
|
||||||
"delayed-stream": "~1.0.0"
|
"delayed-stream": "~1.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"commander": {
|
||||||
|
"version": "2.20.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/commander/-/commander-2.20.0.tgz",
|
||||||
|
"integrity": "sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"component-emitter": {
|
"component-emitter": {
|
||||||
"version": "1.3.0",
|
"version": "1.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz",
|
||||||
|
@ -5711,50 +5717,20 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"uglify-js": {
|
"uglify-js": {
|
||||||
"version": "2.8.22",
|
"version": "3.6.0",
|
||||||
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.22.tgz",
|
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.6.0.tgz",
|
||||||
"integrity": "sha1-1Uk0d4qNoUkD+imjJvskwKtRoaA=",
|
"integrity": "sha512-W+jrUHJr3DXKhrsS7NUVxn3zqMOFn0hL/Ei6v0anCIMoKC93TjcflTagwIHLW7SfMFfiQuktQyFVCFHGUE0+yg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"source-map": "~0.5.1",
|
"commander": "~2.20.0",
|
||||||
"uglify-to-browserify": "~1.0.0",
|
"source-map": "~0.6.1"
|
||||||
"yargs": "~3.10.0"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"camelcase": {
|
"source-map": {
|
||||||
"version": "1.2.1",
|
"version": "0.6.1",
|
||||||
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
|
||||||
"integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=",
|
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
|
||||||
"cliui": {
|
|
||||||
"version": "2.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz",
|
|
||||||
"integrity": "sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE=",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"center-align": "^0.1.1",
|
|
||||||
"right-align": "^0.1.1",
|
|
||||||
"wordwrap": "0.0.2"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"wordwrap": {
|
|
||||||
"version": "0.0.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz",
|
|
||||||
"integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"yargs": {
|
|
||||||
"version": "3.10.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz",
|
|
||||||
"integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"camelcase": "^1.0.2",
|
|
||||||
"cliui": "^2.1.0",
|
|
||||||
"decamelize": "^1.0.0",
|
|
||||||
"window-size": "0.1.0"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
"json-loader": "0.5.7",
|
"json-loader": "0.5.7",
|
||||||
"mkdirp": "0.5.1",
|
"mkdirp": "0.5.1",
|
||||||
"mocha": "6.1.4",
|
"mocha": "6.1.4",
|
||||||
"uglify-js": "2.8.22",
|
"uglify-js": "3.6.0",
|
||||||
"webpack": "1.13.1"
|
"webpack": "1.13.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue