new ExternalsPlugin(type, externals): ExternalsPluginAttributes
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:
Externalsexternals config
Returns:
ExternalsPluginCreates an instance of ExternalsPlugin.
Attributes
externals:
Externalstype:
"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): voidAttributes
Applies the plugin by registering its hooks on the compiler.