new ElectronTargetPlugin(context?, type?): ElectronTargetPluginAttributes
context:
"main" | "preload" | "renderer"in main, preload or renderer context?
type:
"asset" | "module" | "asset-url" | "css-import" | "promise" | "global" | "import" | "this" | "var" | "commonjs" | "self" | "script" | "jsonp" | "assign" | "window" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "amd-async" | "umd" | "umd2" | "system" | "module-import" | "node-commonjs" | "css-url"default external type
Returns:
ElectronTargetPluginCreates an instance of ElectronTargetPlugin.
Attributes
type:
ExternalsTypeapply(compiler): voidAttributes
Applies the plugin by registering its hooks on the compiler.