[Help] Hot module reloading keep opening new process of electron
0xGoenka opened this issue · comments
Esteban commented
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
Help would be greatly appreciated <3
Leo Wang(草鞋没号) commented