vite-reactts-electron-starter icon indicating copy to clipboard operation
vite-reactts-electron-starter copied to clipboard

Auto-Compile and Auto-Reload of Electron/

Open drixie opened this issue 2 years ago • 1 comments

Hello,

Thank you so much for putting this template together. I am new to Electron and this has been super helpful in getting up to speed.

I noticed that auto-reload is very easy on the Renderer process, but I have to restart "yarn dev" everytime I make changes to code in the electron/ folder (index.ts and preload.ts). Is there any way to have these files auto-compile into JS and auto-reload every time I save the files? If this is not possible, what command can I run in a separate terminal while having to "CTRL+C and yarn dev"? Can I use nodemon to handle this?

Thanks in advance

drixie avatar Apr 26 '22 15:04 drixie

This repo just has a very simple project setup and I agree the hot reload for the electron code is missing. But because of it missing I am referencing to more advanced repositories in the Readme. There are templates having HMR.Link

maxstue avatar Apr 30 '22 18:04 maxstue