Webpack plugin that will make the process return status code 1 when it finishes with errors in single-run mode.
npm install webpack2-fail-plugin
var failPlugin = require('webpack2-fail-plugin');
module.exports = {
//config
plugins: [
failPlugin
]
}
Credits to @happypoulp.