Back to Webpack Js Org

NoEmitOnErrorsPlugin

src/content/plugins/NoEmitOnErrorsPlugin.mdx

4.41.2319 B
Original Source

The NoEmitOnErrorsPlugin allows you to avoid emitting assets when there are any errors. Enabled by default, you can disable using optimization.emitOnErrors

webpack.config.js

js
export default {
  plugins: [new webpack.NoEmitOnErrorsPlugin()],
};