Generate source-maps from babel and uglifyjs
This commit is contained in:
parent
a56017f0ec
commit
3940e77612
21 changed files with 105 additions and 44 deletions
|
@ -15,6 +15,7 @@
|
|||
"babel-cli": "^6.18.0",
|
||||
"babel-core": "^6.21.0",
|
||||
"babel-loader": "^6.2.10",
|
||||
"babel-preset-env": "^1.2.2",
|
||||
"babel-preset-es2015": "^6.18.0",
|
||||
"babel-preset-latest": "^6.16.0",
|
||||
"babel-runtime": "^6.20.0",
|
||||
|
@ -34,7 +35,7 @@
|
|||
"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 --source-map $f.map --output $f; done"
|
||||
"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"
|
||||
},
|
||||
"lint-staged": {
|
||||
"eslint-staged": "resources/assets/es6/*.js",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue