ContextExclusionPlugin
Context refers to dynamic expressions in import() or require() such as require('./locale/' + name + '.json').
The ContextExclusionPlugin allows you to exclude context. Provide RegExp as an argument when initializing the Plugin to exclude all context that matches it.
webpack.config.js
export default {
plugins: [new webpack.ContextExclusionPlugin(/dont/)],
};« Previous
BannerPluginNext »
ContextReplacementPlugin
