new NormalModuleReplacementPlugin(resourceRegExp, newResource): NormalModuleReplacementPluginAttributes
resourceRegExp:
<RegExp>the resource matcher
newResource:
<string>
|
<Function>the resource replacement
Returns:
<NormalModuleReplacementPlugin>Create an instance of the plugin
Attributes
newResource:
<string>
|
<Function>resourceRegExp:
<RegExp>apply(compiler): voidAttributes
compiler:
<Compiler>the compiler instance
Returns:
<void>Applies the plugin by registering its hooks on the compiler.