client/build: fix build, use uglify-es package directly
This commit is contained in:
parent
043b182b5e
commit
90b0d77147
3 changed files with 2471 additions and 2 deletions
|
@ -70,7 +70,7 @@ function copyFile(source, target) {
|
|||
}
|
||||
|
||||
function minifyJs(path) {
|
||||
return require('uglify-js').minify(path, {compress: {unused: false}}).code;
|
||||
return require('uglify-es').minify(fs.readFileSync(path, 'utf-8'), {compress: {unused: false}}).code;
|
||||
}
|
||||
|
||||
function minifyCss(css) {
|
||||
|
|
2469
client/package-lock.json
generated
Normal file
2469
client/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -24,7 +24,7 @@
|
|||
"nprogress": "^0.2.0",
|
||||
"stylus": "^0.54.2",
|
||||
"superagent": "^1.8.3",
|
||||
"uglify-js": "git://github.com/mishoo/UglifyJS2.git#harmony",
|
||||
"uglify-es": "^3.0.27",
|
||||
"underscore": "^1.8.3"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue