On this page

new DefinePlugin(definitions): void
  • definitions {Definitions} A map of global object definitions
  • Returns: <DefinePlugin>

Create a new define plugin

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

Apply the plugin


Attributes
compilation:<Compilation>
the compilation
Returns:
{DefinePluginHooks} the attached hooks

Attributes
generator function
options:<string[]>
options
Returns:
{RuntimeValue} runtime value