Electron-forge: should 'electron-forge start' watch for changes to the main process?

Created on 1 Feb 2019  路  3Comments  路  Source: electron-userland/electron-forge

Using all defaults and fresh install and the react-ts template, renderer updates show up via hmr but changes to main (index.ts) do nothing. Is there a way to get at least get a reload on any edit?

Question

All 3 comments

If we had "reload" support for the main process, we'd have to manage the Electron process more granularly (killing, making sure it's stopped, restarting), and I'd like to avoid that level of bookkeeping inside Electron Forge. (@MarshallOfSound please correct me if I'm wrong)

@malept We don't automatically reload the main process but you can type rs and hit enter and we'll relaunch your app (only in v6)

Interesting, I've added that to the start docs.

Was this page helpful?
0 / 5 - 0 ratings