electron-vite/vite-plugin-electron (vite-plugin-electron)
### [`v0.29.0`](https://redirect.github.com/electron-vite/vite-plugin-electron/blob/HEAD/CHANGELOG.md#0290-2024-11-16)
[Compare Source](https://redirect.github.com/electron-vite/vite-plugin-electron/compare/v0.28.8...v0.29.0)
- [`638d0f3`](https://redirect.github.com/electron-vite/vite-plugin-electron/commit/638d0f3) feat: support main process control hot-reload
- [`c58fbf9`](https://redirect.github.com/electron-vite/vite-plugin-electron/commit/c58fbf9) feat: mock index.html for support use the main process only
**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**.
```js
// 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()
}
}
})
```
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
0.28.8
->0.29.0
Release Notes
electron-vite/vite-plugin-electron (vite-plugin-electron)
### [`v0.29.0`](https://redirect.github.com/electron-vite/vite-plugin-electron/blob/HEAD/CHANGELOG.md#0290-2024-11-16) [Compare Source](https://redirect.github.com/electron-vite/vite-plugin-electron/compare/v0.28.8...v0.29.0) - [`638d0f3`](https://redirect.github.com/electron-vite/vite-plugin-electron/commit/638d0f3) feat: support main process control hot-reload - [`c58fbf9`](https://redirect.github.com/electron-vite/vite-plugin-electron/commit/c58fbf9) feat: mock index.html for support use the main process only **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**. ```js // 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() } } }) ```Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.