vite-plugin-electron
Advanced tools
Changelog
0.29.0 (2024-11-16)
Hot Reload
Since v0.29.0
, when preload scripts are rebuilt, they will send an electron-vite&type=hot-reload
event to the main process.
If your App doesn't need a renderer process, this will give you hot-reload.
// electron/main.ts
process.on('message', (msg) => {
if (msg === 'electron-vite&type=hot-reload') {
for (const win of BrowserWindow.getAllWindows()) {
// Hot reload preload scripts
win.webContents.reload()
}
}
})
Changelog
0.28.8 (2024-09-19)
Changelog
0.28.6 (2024-04-21)
ElectronOptions['startup']
definitionChangelog
0.28.5 (2024-04-19)
startup
callContributors:
Changelog
0.28.4 (2024-03-17)
vite-plugin-electron-renderer
in peerDependencies
process.kill(pid)
errorChangelog
0.28.1 (2024-02-06)
calcEntryCount()
for startupSpawnOptions
#194treeKillSync
implementedprocess.env
by defaultBuilt format