Dashboard: disable source maps in prod builds, add debug build with source maps and no minification
This commit is contained in:
parent
c5c0ed55d0
commit
a45d2965e9
2 changed files with 13 additions and 1 deletions
10
dashboard/package-lock.json
generated
10
dashboard/package-lock.json
generated
|
@ -2416,6 +2416,16 @@
|
|||
"sha.js": "^2.4.8"
|
||||
}
|
||||
},
|
||||
"cross-env": {
|
||||
"version": "5.2.0",
|
||||
"resolved": "https://registry.npmjs.org/cross-env/-/cross-env-5.2.0.tgz",
|
||||
"integrity": "sha512-jtdNFfFW1hB7sMhr/H6rW1Z45LFqyI431m3qU6bFXcQ3Eh7LtBuG3h74o7ohHZ3crrRkkqHlo4jYHFPcjroANg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"cross-spawn": "^6.0.5",
|
||||
"is-windows": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"cross-spawn": {
|
||||
"version": "6.0.5",
|
||||
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz",
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
"description": "",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "rimraf dist && parcel build src/index.html --out-dir dist",
|
||||
"build": "rimraf dist && parcel build src/index.html --no-source-maps --out-dir dist",
|
||||
"build-debug": "rimraf dist && cross-env NODE_ENV=development parcel build src/index.html --no-minify --out-dir dist",
|
||||
"watch": "parcel src/index.html"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
@ -12,6 +13,7 @@
|
|||
"babel-core": "^6.26.3",
|
||||
"babel-plugin-transform-object-rest-spread": "^6.26.0",
|
||||
"babel-plugin-transform-runtime": "^6.23.0",
|
||||
"cross-env": "^5.2.0",
|
||||
"parcel-bundler": "^1.12.3",
|
||||
"sass": "^1.21.0",
|
||||
"vue-template-compiler": "^2.6.10"
|
||||
|
|
Loading…
Add table
Reference in a new issue