Skip to main content
webpack / ExternalsPlugin

Class: ExternalsPlugin

Defined in: webpack/types.d.ts:5789

Constructors

Constructor

new ExternalsPlugin(type, externals): ExternalsPlugin
Defined in: webpack/types.d.ts:5790

Parameters

type
"window" | "promise" | "module" | "script" | "var" | "self" | "global" | "asset" | "css-import" | "css-url" | "commonjs" | "import" | "jsonp" | "this" | "assign" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "module-import" | "node-commonjs" | (dependency) => ExternalsType
externals
Externals

Returns

ExternalsPlugin

Properties

externals

externals: Externals
Defined in: webpack/types.d.ts:5847

type

type: "window" | "promise" | "module" | "script" | "var" | "self" | "global" | "asset" | "css-import" | "css-url" | "commonjs" | "import" | "jsonp" | "this" | "assign" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "module-import" | "node-commonjs" | (dependency) => ExternalsType
Defined in: webpack/types.d.ts:5820

Methods

apply()

apply(compiler): void
Defined in: webpack/types.d.ts:5852 Apply the plugin

Parameters

compiler
Compiler

Returns

void