On this page

new ProvidePlugin(definitions): void

Creates an instance of ProvidePlugin.

  • definitions {Record<string, string|string[]>}
apply(compiler): void
Attributes
compiler:<Compiler>
Returns:
{void}

Applies the plugin by registering its hooks on the compiler.