On this page

new DllReferencePlugin(options): DllReferencePlugin
Attributes
options object

Creates an instance of DllReferencePlugin.

Attributes
apply(compiler): void
Attributes
compiler:Compiler
the compiler instance
Returns:void

Applies the plugin by registering its hooks on the compiler.

Type:{ context?: string; extensions?: string[]; manifest: string | DllReferencePluginOptionsManifest; name?: string; scope?: string; sourceType?: "var" | "assign" | "this" | "window" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "amd" | "amd-require" | "umd" | "umd2" | "jsonp" | "system"; type?: "object" | "require" } | { content: DllReferencePluginOptionsContent; context?: string; extensions?: string[]; name: string; scope?: string; sourceType?: "var" | "assign" | "this" | "window" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "amd" | "amd-require" | "umd" | "umd2" | "jsonp" | "system"; type?: "object" | "require" }

{ context?: string; extensions?: string[]; manifest: string | DllReferencePluginOptionsManifest; name?: string; scope?: string; sourceType?: "var" | "assign" | "this" | "window" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "amd" | "amd-require" | "umd" | "umd2" | "jsonp" | "system"; type?: "object" | "require" }

Attributes
context:string
Context of requests in the manifest (or content property) as absolute path.
extensions:string[]
Extensions used to resolve modules in the dll bundle (only used when using 'scope').
An object containing content and name or a string to the absolute path of the JSON manifest to be loaded upon compilation.
name:string
The name where the dll is exposed (external name, defaults to manifest.name).
scope:string
Prefix which is used for accessing the content of the dll.
sourceType:"var" | "assign" | "this" | "window" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "amd" | "amd-require" | "umd" | "umd2" | "jsonp" | "system"
How the dll is exposed (libraryTarget, defaults to manifest.type).
type:"object" | "require"
The way how the export of the dll bundle is used.

{ content: DllReferencePluginOptionsContent; context?: string; extensions?: string[]; name: string; scope?: string; sourceType?: "var" | "assign" | "this" | "window" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "amd" | "amd-require" | "umd" | "umd2" | "jsonp" | "system"; type?: "object" | "require" }

Attributes
The mappings from request to module info.
context:string
Context of requests in the manifest (or content property) as absolute path.
extensions:string[]
Extensions used to resolve modules in the dll bundle (only used when using 'scope').
name:string
The name where the dll is exposed (external name).
scope:string
Prefix which is used for accessing the content of the dll.
sourceType:"var" | "assign" | "this" | "window" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "amd" | "amd-require" | "umd" | "umd2" | "jsonp" | "system"
How the dll is exposed (libraryTarget).
type:"object" | "require"
The way how the export of the dll bundle is used.

An object containing content, name and type.

Attributes
The mappings from request to module info.
name:string
The name where the dll is exposed (external name).
type:"global" | "this" | "var" | "commonjs" | "jsonp" | "assign" | "window" | "commonjs2" | "commonjs-module" | "amd" | "amd-require" | "umd" | "umd2" | "system"
The type how the dll is exposed (external type).