Electron Auto-reload on changes
See original GitHub issueSo you describe a hot reload on the readme. Is the angular reload meant by that? this works fine, but is there a way to recompile electron easier without ending and restarting it with npm start
? Or is there a watch mode i have not seen?
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
How to use live reload in your Electron Project | Our Code World
Learn how to reload your electron project automatically when you make a change without rebuild electron. How to use live reload in your ......
Read more >How to set up hot reload on Electron - Flavio Copes
When working on an Electron app, it's very handy to set up hot reload, so that the application updates without having to restart...
Read more >electron-reload - npm
Simplest way to reload an electron app on file changes! ... Start using electron-reload in your project by running `npm i electron-reload`.
Read more >Hot Reload in ElectronJS - GeeksforGeeks
Approach 1: Using electron-reload npm package. This package is used to load the contents of all active BrowserWindow Instances within Electron ...
Read more >sindresorhus/electron-reloader: Simple auto ... - GitHub
Simple auto-reloading for Electron apps during development. It just works. When files used in the main process are changed, the app is restarted, ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
install nodemon globally, or as a dev dep either will work.
then just change this line in package.json to this.
This will watch the main.ts electron process file. when you save changes nodemon will run the -exec override and recompile the electron main process code and restart it.
There are a couple options, the watchmode for electron i’m not familiar with but you can use a lib like nodemon manage the electron process in development. Tell it to watch the electron files and give it an execute of
tsc ./path/to/electron/main
and it will kill the main process, compile and run again. the other is with a task runner that has watching, like gulp etc. you can make it watch and kill the process and fire off the build and run again. Does this answer your question?