On this page

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

Create an instance of the plugin

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

Apply the plugin