Skip to content

Commit

Permalink
Merge pull request #188 from electron-vite/v0.15.5
Browse files Browse the repository at this point in the history
V0.15.5
  • Loading branch information
caoxiemeihao authored Dec 12, 2023
2 parents f606551 + 39e94ba commit 3ac7fcd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.15.5 (2023-12-12)

- f57a60a fix(#182, #187): correctly `options.reload()`
- f606551 Merge pull request #178 from electron-vite/v0.15.4

## 0.15.4 (2023-11-08)

- 532e0b4 Merge pull request #177 from Siykt/main
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-plugin-electron",
"version": "0.15.4",
"version": "0.15.5",
"description": "Electron 🔗 Vite",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ export default function electron(options: ElectronOptions | ElectronOptions[]):
if (options.onstart) {
options.onstart.call(this, {
startup,
reload() {
server.ws.send({ type: 'full-reload' })
},
reload: process.electronApp
? () => server.ws.send({ type: 'full-reload' })
: startup,
})
} else {
startup()
Expand Down

0 comments on commit 3ac7fcd

Please sign in to comment.