Use uglify-js v3

This commit is contained in:
Jonny Barnes 2017-05-23 14:41:56 +01:00
parent 9371a87748
commit d7817a7279
27 changed files with 67 additions and 7226 deletions

View file

@ -34,7 +34,8 @@
"copy-dist": "cp ./node_modules/mapbox-gl/dist/mapbox-gl.css ./public/assets/frontend/ && cp ./node_modules/alertify.js/dist/css/alertify.css ./public/assets/frontend/ && cp ./node_modules/normalize.css/normalize.css ./public/assets/frontend/",
"lint:sass": "stylelint --syntax=scss resources/assets/sass/**/*.scss",
"lint:es6": "eslint resources/assets/es6/*.js",
"uglifyjs": "for f in ./public/assets/js/*.js; do uglifyjs $f --screw-ie8 --in-source-map $f.map --source-map $f.map --source-map-url /assets/js/`basename $f`.map --output $f; done"
"uglifyjs": "./uglifyjs",
"webpack": "./node_modules/.bin/webpack --progress --colors"
},
"lint-staged": {
"resources/assets/es6/*.js": "eslint",