On this page

new EnvironmentPlugin(...keys?): EnvironmentPlugin
Attributes
keys:(string | string[] | Record<string, any>)[]
keys

Creates an instance of EnvironmentPlugin.

Attributes
defaultValues:Record<string, any>
keys:string[]
apply(compiler): void
Attributes
compiler:Compiler
the compiler instance
Returns:void

Applies the plugin by registering its hooks on the compiler.