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-vite
VitePlugin
Class VitePlugin
Hierarchy
Plugin
<
VitePluginConfig
>
VitePlugin
Index
Constructors
constructor
Properties
config
name
Methods
build
build
Renderer
exit
Handler
get
Hooks
init
launch
Renderer
Dev
Servers
package
After
Copy
resolve
Forge
Config
set
Directories
start
Logic
Constructors
constructor
new
Vite
Plugin
(
config
:
VitePluginConfig
)
:
VitePlugin
Parameters
config:
VitePluginConfig
Returns
VitePlugin
Properties
config
config
:
VitePluginConfig
name
name
:
string
= 'vite'
Methods
build
build
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
build
Renderer
build
Renderer
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
exit
Handler
exit
Handler
(
options
:
{
cleanup
?:
boolean
;
exit
?:
boolean
}
, err
?:
Error
)
:
void
Parameters
options:
{
cleanup
?:
boolean
;
exit
?:
boolean
}
Optional
cleanup
?:
boolean
Optional
exit
?:
boolean
Optional
err:
Error
Returns
void
get
Hooks
get
Hooks
(
)
:
ForgeMultiHookMap
Returns
ForgeMultiHookMap
init
init
(
dir
:
string
)
:
void
Parameters
dir:
string
Returns
void
launch
Renderer
Dev
Servers
launch
Renderer
Dev
Servers
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
package
After
Copy
package
After
Copy
(
_forgeConfig
:
ResolvedForgeConfig
, buildPath
:
string
)
:
Promise
<
void
>
Parameters
_forgeConfig:
ResolvedForgeConfig
buildPath:
string
Returns
Promise
<
void
>
resolve
Forge
Config
resolve
Forge
Config
(
forgeConfig
:
ResolvedForgeConfig
)
:
Promise
<
ResolvedForgeConfig
>
Parameters
forgeConfig:
ResolvedForgeConfig
Returns
Promise
<
ResolvedForgeConfig
>
set
Directories
set
Directories
(
dir
:
string
)
:
void
Parameters
dir:
string
Returns
void
start
Logic
start
Logic
(
)
:
Promise
<
StartResult
>
Returns
Promise
<
StartResult
>
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