client/build: replace uglify-es, update dependencies

This commit is contained in:
Michael Serajnik 2018-07-06 22:02:48 +02:00 committed by Marcin Kurczewski
parent 60ab9246c6
commit d43758bcc2
4 changed files with 1095 additions and 967 deletions

View file

@ -1 +1 @@
{ "presets": ["es2015"] }
{ "presets": ["env"] }

View file

@ -46,11 +46,11 @@ function copyFile(source, target) {
}
function minifyJs(path) {
return require('uglify-es').minify(fs.readFileSync(path, 'utf-8'), {compress: {unused: false}}).code;
return require('terser').minify(fs.readFileSync(path, 'utf-8'), {compress: {unused: false}}).code;
}
function minifyCss(css) {
return require('csso').minify(css);
return require('csso').minify(css).css;
}
function minifyHtml(html) {

2025
client/package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -6,22 +6,25 @@
"watch": "c1=\"\";while :;do c2=$(find html js css img -type f -and -not -iname '*autogen*'|sort|xargs cat|md5sum);[[ $c1 != $c2 ]]&&npm run build -- --no-vendor-js;c1=$c2;sleep 1;done"
},
"dependencies": {
"babel-polyfill": "^6.26.0",
"babel-preset-es2015": "^6.24.1",
"babelify": "^7.2.0",
"browserify": "^13.0.0",
"csso": "^1.8.0",
"font-awesome": "^4.6.1",
"glob": "^7.1.2",
"html-minifier": "^1.3.1",
"font-awesome": "^4.7.0",
"ios-inner-height": "^1.0.3",
"js-cookie": "^2.2.0",
"marked": "^0.3.9",
"mousetrap": "^1.6.1",
"marked": "^0.4.0",
"mousetrap": "^1.6.2",
"nprogress": "^0.2.0",
"stylus": "^0.54.2",
"superagent": "^1.8.3",
"uglify-es": "^3.3.4",
"underscore": "^1.8.3"
"superagent": "^3.8.3"
},
"devDependencies": {
"babel-core": "^6.26.3",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.7.0",
"babelify": "^8.0.0",
"browserify": "^16.2.2",
"csso": "^3.5.1",
"glob": "^7.1.2",
"html-minifier": "^3.5.18",
"stylus": "^0.54.5",
"terser": "^3.7.7",
"underscore": "^1.9.1"
}
}