node package manager

webpack-fail-plugin

DEPRECATED: This is default behaviour in Webpack 2.x, you don't need this plugin anymore.

Webpack plugin that will make the process return status code 1 when it finishes with errors in single-run mode.

Install

npm install webpack-fail-plugin

Usage

var failPlugin = require('webpack-fail-plugin');
 
module.exports = {
    //config 
    plugins: [
        failPlugin
    ]
}

Credits to @happypoulp.