Search
Preparing search index...
The search index is not available
Electron Forge
Options
All
Public
Public/Protected
All
Inherited
Menu
Electron Forge
@electron-forge/plugin-webpack
InternalOptions
"/home/runner/work/forge/forge/node_modules/webpack/types"
DefinePlugin
Class DefinePlugin
Hierarchy
DefinePlugin
Index
Constructors
constructor
Properties
definitions
Methods
apply
runtime
Value
Constructors
constructor
new
Define
Plugin
(
definitions
:
Record
<
string
,
CodeValue
>
)
:
DefinePlugin
Create a new define plugin
Parameters
definitions:
Record
<
string
,
CodeValue
>
Returns
DefinePlugin
Properties
definitions
definitions
:
Record
<
string
,
CodeValue
>
Methods
apply
apply
(
compiler
:
Compiler
)
:
void
Apply the plugin
Parameters
compiler:
Compiler
Returns
void
Static
runtime
Value
runtime
Value
(
fn
:
(
arg0
:
{
key
:
string
;
module
:
"/home/runner/work/forge/forge/node_modules/webpack/types"
.
NormalModule
;
version
?:
string
}
)
=>
CodeValuePrimitive
, options
?:
true
|
string
[]
|
RuntimeValueOptions
)
:
RuntimeValue
Parameters
fn:
(
arg0
:
{
key
:
string
;
module
:
"/home/runner/work/forge/forge/node_modules/webpack/types"
.
NormalModule
;
version
?:
string
}
)
=>
CodeValuePrimitive
(
arg0
:
{
key
:
string
;
module
:
"/home/runner/work/forge/forge/node_modules/webpack/types"
.
NormalModule
;
version
?:
string
}
)
:
CodeValuePrimitive
Parameters
arg0:
{
key
:
string
;
module
:
"/home/runner/work/forge/forge/node_modules/webpack/types"
.
NormalModule
;
version
?:
string
}
key
:
string
module
:
"/home/runner/work/forge/forge/node_modules/webpack/types"
.
NormalModule
Optional
Readonly
version
?:
string
Returns
CodeValuePrimitive
Optional
options:
true
|
string
[]
|
RuntimeValueOptions
Returns
RuntimeValue
All Modules
Makers
maker-appx
maker-deb
maker-dmg
maker-flatpak
maker-pkg
maker-rpm
maker-snap
maker-squirrel
maker-wix
maker-zip
Plugins
plugin-auto-unpack-natives
plugin-base
plugin-electronegativity
plugin-fuses
plugin-local-electron
plugin-vite
plugin-webpack
Publishers
publisher-base
publisher-bitbucket
publisher-electron-release-server
publisher-gcs
publisher-github
publisher-nucleus
publisher-s3
publisher-snapcraft
publisher-static
Templates
template-base
template-vite
template-vite-typescript
template-webpack
template-webpack-typescript
Utils & Internal Helpers
core
core-utils
maker-base
shared-types
test-utils
tracer
web-multi-logger
Create a new define plugin