Browse Source

Merge pull request #7 from blink1073/webpack-bail

Make bail part of the webpack config
Steven Silvester 9 years ago
parent
commit
55cfdab972
2 changed files with 2 additions and 1 deletions
  1. 1 0
      examples/lab/webpack.conf.js
  2. 1 1
      package.json

+ 1 - 0
examples/lab/webpack.conf.js

@@ -11,6 +11,7 @@ module.exports = {
   node: {
   node: {
     fs: "empty"
     fs: "empty"
   },
   },
+  bail: true,
   module: {
   module: {
     loaders: [
     loaders: [
       { test: /\.ts$/, loader: 'ts-loader' },
       { test: /\.ts$/, loader: 'ts-loader' },

+ 1 - 1
package.json

@@ -38,7 +38,7 @@
   "scripts": {
   "scripts": {
     "clean:example": "rimraf example/build",
     "clean:example": "rimraf example/build",
     "clean": "rimraf docs/api && rimraf lib && rimraf test/coverage",
     "clean": "rimraf docs/api && rimraf lib && rimraf test/coverage",
-    "build:example": "webpack --config example/webpack.conf.js --bail",
+    "build:example": "webpack --config example/webpack.conf.js",
     "build": "tsc --project src && node scripts/copycss.js",
     "build": "tsc --project src && node scripts/copycss.js",
     "docs": "typedoc --options scripts/tdoptions.json",
     "docs": "typedoc --options scripts/tdoptions.json",
     "postinstall": "npm dedupe",
     "postinstall": "npm dedupe",