On this page

new ExternalsPlugin(type, externals): ExternalsPlugin
Attributes
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" | ((dependency: Dependency) => ExternalsType)
default external type
externals:Externals
externals config

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" | ((dependency: Dependency) => ExternalsType)
apply(compiler): void
Attributes
compiler:Compiler
the compiler instance
Returns:void

Applies the plugin by registering its hooks on the compiler.