electron-vite / electron-vite-vue

🥳 Really simple Electron + Vite + Vue boilerplate.

Home Page:https://electron-vite.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Help] Hot module reloading keep opening new process of electron

0xGoenka opened this issue · comments

Hot module reloading keep opening new process of electron when I save change in the main/index.ts

I got few class importer and initialized in the main/index.ts because I need them to use node API

But when I edit them and save this create me a new window of electron, it seems logic, but I can't find a way to fix this :/

I'm really new to electron only 2 days in.

I'm running on Mac Os and BrowserWindow.getAllWindows().length keep returning me 1

Screenshot 2023-12-05 at 19 14 42

Help would be greatly appreciated <3