NoEmitOnErrorsPlugin

The NoEmitOnErrorsPlugin allows you to avoid emitting assets when there are any errors. It is enabled by default in production mode, where optimization.emitOnErrors defaults to false; use that option to enable or disable it.

webpack.config.js

export default {
  plugins: [new webpack.NoEmitOnErrorsPlugin()],
};
Edit this page·

3 Contributors

jeffinchenxsansnitin315