On this page

new NormalModuleReplacementPlugin(resourceRegExp, newResource): NormalModuleReplacementPlugin
Attributes
resourceRegExp:<RegExp>
the resource matcher
newResource:<string> | <object>
the resource replacement

Create an instance of the plugin

Attributes
newResource:<string> | <object>
resourceRegExp:<RegExp>
apply(compiler): void
Attributes
compiler:<Compiler>
the compiler instance
Returns:
{void}

Apply the plugin