Split parcel prod bundle into own npm script

This commit is contained in:
Robbie Antenesse 2019-09-13 20:23:54 -06:00
parent 596721fb2d
commit 71516dd833
1 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,8 @@
"start": "npm run build && cross-env NODE_ENV=production npm run serve",
"watch-js": "parcel watch app/index.html --out-dir public --no-hmr --no-cache",
"serve": "node server/index.js",
"build": "npm run process-images && parcel build app/index.html --out-dir public --no-source-maps --no-cache",
"build": "npm run process-images && npm run bundle",
"bundle": "parcel build app/index.html --out-dir public --no-source-maps --no-cache",
"process-images": "node ./process-images.js",
"clear": "rimraf public/{*,.*}"
},