new LibraryTemplatePlugin(name, target, umdNamedDefine, auxiliaryComment, exportProperty): LibraryTemplatePluginAttributes
name:
LibraryNamename of library
target:
stringtype of library
umdNamedDefine:
booleansetting this to true will name the UMD module
auxiliaryComment:
AuxiliaryCommentcomment in the UMD wrapper
exportProperty:
LibraryExportwhich export should be exposed as library
Returns:
LibraryTemplatePluginCreates an instance of LibraryTemplatePlugin.
Attributes
library:
{ auxiliaryComment: AuxiliaryComment; export: LibraryExport; name: LibraryName; type: string; umdNamedDefine: boolean }apply(compiler): voidAttributes
Applies the plugin by registering its hooks on the compiler.
Type:
string | string[] | LibraryCustomUmdObject