Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

fail-on-errors-webpack-plugin

AustinMatherne10.5kMIT3.0.0TypeScript support: definitely-typed

Webpack plugin that makes the process return an error code on failure

webpack

readme

FailOnErrorsPlugin

Webpack plugin that will make the process exit with status code 1 when it finishes with soft errors or warnings.

Install

npm install fail-on-errors-webpack-plugin

Usage

var FailOnErrorsPlugin = require('fail-on-errors-webpack-plugin');

module.exports = {
  //config
  plugins: [
    new FailOnErrorsPlugin({
      failOnErrors: true,
      failOnWarnings: true,
    })
  ]
}

Credits

Forked from webpack-fail-plugin