new DefinePlugin(definitions): voiddefinitions{Definitions} A map of global object definitions- Returns:
<DefinePlugin>
Create a new define plugin
definitions{Definitions}
webpack.DefinePlugin.apply(compiler): voidAttributes
compiler:
<Compiler>the compiler instance
Returns:
{void}
Apply the plugin
webpack.DefinePlugin.getCompilationHooks(compilation): DefinePluginHooksAttributes
compilation:
<Compilation>the compilation
Returns:
{DefinePluginHooks} the attached hooks
webpack.DefinePlugin.runtimeValue(fn, options?): RuntimeValueAttributes
fn:
<object>generator function
options:
<string[]>options
Returns:
{RuntimeValue} runtime value