new NormalModuleReplacementPlugin(resourceRegExp, newResource): NormalModuleReplacementPluginAttributes
resourceRegExp:
RegExpthe resource matcher
newResource:
string | ((resolveData: ResolveData) => void)the resource replacement
Returns:
NormalModuleReplacementPluginCreate an instance of the plugin
Attributes
newResource:
string | ((resolveData: ResolveData) => void)resourceRegExp:
RegExpapply(compiler): voidAttributes
Applies the plugin by registering its hooks on the compiler.