Skip to content

Commit 9c3c1b7

Browse files
committed
Make webpack exit non-zero on error
Pass `--bail` to webpack, so that if we can't find a module, we bail out rather than deploy a broken version to /develop. webpack/webpack#708 is somewhat relevant.
1 parent ec6efd2 commit 9c3c1b7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
"build:res": "node scripts/copy-res.js",
3232
"build:modernizr": "modernizr -c .modernizr.json -d src/vector/modernizr.js",
3333
"build:compile": "npm run reskindex && babel --source-maps -d lib src",
34-
"build:bundle": "cross-env NODE_ENV=production webpack -p --progress",
35-
"build:bundle:dev": "webpack --optimize-occurence-order --progress",
34+
"build:bundle": "cross-env NODE_ENV=production webpack -p --progress --bail",
35+
"build:bundle:dev": "webpack --optimize-occurence-order --progress --bail",
3636
"build:electron": "npm run clean && npm run build && npm run install:electron && build -wml --ia32 --x64",
3737
"build": "npm run reskindex && npm run build:res && npm run build:bundle",
3838
"build:dev": "npm run reskindex && npm run build:res && npm run build:bundle:dev",

0 commit comments

Comments
 (0)