client/build: fix build, use uglify-es package directly

This commit is contained in:
Michael Serajnik 2017-08-11 16:12:37 +02:00 committed by Marcin Kurczewski
parent 043b182b5e
commit 90b0d77147
3 changed files with 2471 additions and 2 deletions

View file

@ -70,7 +70,7 @@ function copyFile(source, target) {
} }
function minifyJs(path) { 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) { function minifyCss(css) {

2469
client/package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -24,7 +24,7 @@
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
"stylus": "^0.54.2", "stylus": "^0.54.2",
"superagent": "^1.8.3", "superagent": "^1.8.3",
"uglify-js": "git://github.com/mishoo/UglifyJS2.git#harmony", "uglify-es": "^3.0.27",
"underscore": "^1.8.3" "underscore": "^1.8.3"
} }
} }