electron / forge

:electron: A complete tool for building and publishing Electron applications
https://electronforge.io
MIT License
6.49k stars 517 forks source link

Disable electron restart on file changes #3694

Open rtritto opened 2 months ago

rtritto commented 2 months ago

Pre-flight checklist

Problem description

I have a config file that is used (imported) in a component to render its content. When the config changes also electron window is restarted.

Proposed solution

In electron/electron-forge/vite settings, add the config file path to an option to ignore the restart of electron window

Alternatives considered

NA

Additional information

No response

rtritto commented 1 month ago

@caoxiemeihao in Electron Forge (or maybe Vite) context, what is the correct way to add ignore watch file related to hot-reload/hot-restart?