Exit with error code when webpack encounts error

This commit is contained in:
Yuya Ochiai 2017-01-17 20:52:53 +09:00
parent f8fadcb844
commit e72e4155ba

View file

@ -20,8 +20,8 @@
"install": "cd src && npm install",
"postinstall": "npm run build",
"build": "npm-run-all build:*",
"build:main": "cross-env NODE_ENV=production webpack --config webpack.config.main.js",
"build:renderer": "cross-env NODE_ENV=production webpack --config webpack.config.renderer.js",
"build:main": "cross-env NODE_ENV=production webpack --bail --config webpack.config.main.js",
"build:renderer": "cross-env NODE_ENV=production webpack --bail --config webpack.config.renderer.js",
"build:others": "gulp build",
"start": "electron dist",
"watch": "gulp watch",