On this page

new ProvidePlugin(definitions): ProvidePlugin
Attributes
definitions:Record<string, string | string[]>
the provided identifiers

Creates an instance of ProvidePlugin.

Attributes
definitions:Record<string, string | string[]>
apply(compiler): void
Attributes
compiler:Compiler
the compiler instance
Returns:void

Applies the plugin by registering its hooks on the compiler.