On this page

new SharePlugin(options): SharePlugin
Attributes
options
Returns:SharePlugin

Creates an instance of SharePlugin.

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

Applies the plugin by registering its hooks on the compiler.


Options for shared modules.

Attributes
shared:Shared
Modules that should be shared in the share scope. When provided, property names are used to match requested modules in this compilation.
shareScope:string
Share scope name used for all shared modules (defaults to 'default').