Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable electron restart on file changes #3694

Open
3 tasks done
rtritto opened this issue Sep 13, 2024 · 1 comment
Open
3 tasks done

Disable electron restart on file changes #3694

rtritto opened this issue Sep 13, 2024 · 1 comment

Comments

@rtritto
Copy link

rtritto commented Sep 13, 2024

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project uses.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

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 rtritto changed the title Disable electron restart to changes of a file Disable electron restart on file changes Sep 13, 2024
@rtritto
Copy link
Author

rtritto commented Sep 21, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant