DEV Community

Discussion on: Create Your First React Desktop Application in Electron with Hot-Reload

Collapse
 
amanparmargit profile image
Amansinh Parmar

Don't use nodemon as it will restart whole electron app,

just add (__dirname) to electron-reload.

like this : require('electron-reload')(__dirname)

in short __dirname should be your root dir. if your main.js is in src use one directory up.