On this page

new DefinePlugin(definitions): DefinePlugin
Attributes
definitions:<Definitions>
A map of global object definitions

Create a new define plugin

Attributes
definitions:<Definitions>
apply(compiler): void
Attributes
compiler:<Compiler>
the compiler instance
Returns:<void>

Applies the plugin by registering its hooks on the compiler.


Attributes
compilation:<Compilation>
the compilation
the attached hooks

Returns the attached hooks.


Attributes
generator function
options:
<true> | <string> [] | <RuntimeValueOptions> options
runtime value

Returns runtime value.




< <T> >[] | <T>