On this page

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

Create a new define plugin

  • definitions {Definitions}
webpack.DefinePlugin.apply(compiler): void
  • compiler {Compiler} the compiler instance
  • Returns: {void}

Apply the plugin


webpack.DefinePlugin.getCompilationHooks(compilation): void
  • compilation {Compilation} the compilation
  • Returns: {DefinePluginHooks} the attached hooks

webpack.DefinePlugin.runtimeValue(fn, options?): RuntimeValue
Attributes
generator function
options:<string[]>
options
Returns:
{RuntimeValue} runtime value