On this page

new ExternalsPlugin(type, externals): void
  • type <"asset"> | <"module"> | <"asset-url"> | <"css-import"> | <"global"> | <"import"> | <"promise"> | <"this"> | <"var"> | <"script"> | <"commonjs"> | <"jsonp"> | <"assign"> | <"window"> | <"self"> | <"commonjs2"> | <"commonjs-module"> | <"commonjs-static"> | <"amd"> | <"amd-require"> | <"umd"> | <"umd2"> | <"system"> | <"module-import"> | <"node-commonjs"> | <"css-url"> | <object>
  • externals <Externals>
  • Returns: <ExternalsPlugin>

Creates an instance of ExternalsPlugin.

Attributes
externals:<Externals>
type:
<"asset"> | <"module"> | <"asset-url"> | <"css-import"> | <"global"> | <"import"> | <"promise"> | <"this"> | <"var"> | <"script"> | <"commonjs"> | <"jsonp"> | <"assign"> | <"window"> | <"self"> | <"commonjs2"> | <"commonjs-module"> | <"commonjs-static"> | <"amd"> | <"amd-require"> | <"umd"> | <"umd2"> | <"system"> | <"module-import"> | <"node-commonjs"> | <"css-url"> | <object>
apply(compiler): void
Attributes
compiler:<Compiler>
Returns:
{void}

Applies the plugin by registering its hooks on the compiler.