Webpack now fails on error

This commit is contained in:
József Farkas
2016-08-15 22:13:28 +02:00
parent ee5eb29f2a
commit 1cb95840c9
4 changed files with 12 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
// var webpack = require("webpack");
var webpackFailPlugin = require('webpack-fail-plugin');
module.exports = {
entry: {
@@ -24,7 +25,8 @@ module.exports = {
]
},
plugins: [
// new webpack.optimize.UglifyJsPlugin({ minimize: true })
// new webpack.optimize.UglifyJsPlugin({ minimize: true }),
webpackFailPlugin
],
node: {
fs: "empty"