On this page

new ContextReplacementPlugin(resourceRegExp, newContentResource?, newContentRecursive?, newContentRegExp?): ContextReplacementPlugin
Attributes
resourceRegExp:<RegExp>
A regular expression that determines which files will be selected
newContentResource:<string> | <boolean> | <RegExp> | <object>
A new resource to replace the match
newContentRecursive:<boolean> | <RegExp>
If true, all subdirectories are searched for matches
newContentRegExp:<RegExp>
A regular expression that determines which files will be selected
Attributes
newContentCallback:<object>
newContentCreateContextMap:<object>
newContentRecursive:<boolean>
newContentRegExp:<RegExp>
newContentResource:<string>
resourceRegExp:<RegExp>
apply(compiler): void
Attributes
compiler:<Compiler>
the compiler instance
Returns:
{void}

Apply the plugin