Webpack plugin that ensures the build process exits with a non-zero exit code when compilation errors occur in single-run mode. Current version 2.0.0 (last release) is deprecated because Webpack 2+ natively exits with an error code on failures. This plugin was a workaround for Webpack 1.x where errors did not propagate correctly. No active development; the package is effectively in maintenance mode for legacy Webpack 1.x projects. For Webpack 2+, the built-in behavior should be sufficient.
npm install webpack-fail-pluginVerified import paths — ran on the pinned version, not inferred.
Basic Webpack config using the fail plugin to ensure non-zero exit code on errors (only needed for Webpack 1.x).
Remove the plugin for Webpack 2+ projects; for Webpack 1.x, it may still be needed.
Do not use with Webpack 2+ unless you experience a bug; prefer native exit behavior.
Remove the plugin; Webpack 2+ handles exit codes natively.