W3cubDocs

/webpack

NoEmitOnErrorsPlugin

Use the NoEmitOnErrorsPlugin to skip the emitting phase whenever there are errors while compiling. This ensures that no assets are emitted that include errors. The emitted flag in the stats is false for all assets.

new webpack.NoEmitOnErrorsPlugin()
This supersedes the (now deprecated) webpack 1 plugin NoErrorsPlugin.
If you are using the CLI, the webpack process will not exit with an error code by enabling this plugin. If you want webpack to "fail" when using the CLI, please check out the bail option.

© JS Foundation and other contributors
Licensed under the Creative Commons Attribution License 4.0.
https://webpack.js.org/plugins/no-emit-on-errors-plugin