new ContextReplacementPlugin(resourceRegExp, newContentResource?, newContentRecursive?, newContentRegExp?): ContextReplacementPluginAttributes
resourceRegExp:
<RegExp>newContentResource:
<string>
|
<boolean>
|
<RegExp>
|
<Function>newContentRegExp:
<RegExp>Returns:
<ContextReplacementPlugin>Creates an instance of ContextReplacementPlugin.
Attributes
newContentCallback:
<Function>newContentCreateContextMap:
<Function>Stores new content create context map.
newContentRecursive:
<boolean>newContentRegExp:
<RegExp>newContentResource:
<string>resourceRegExp:
<RegExp>apply(compiler): voidAttributes
compiler:
<Compiler>Returns:
<void>Applies the plugin by registering its hooks on the compiler.