On this page

new NormalModuleReplacementPlugin(resourceRegExp, newResource): NormalModuleReplacementPlugin
Attributes
resourceRegExp:<RegExp>
newResource:<string> | <object>

Create an instance of the plugin

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

Applies the plugin by registering its hooks on the compiler.