question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hot reload main process

See original GitHub issue

The current dev process launch start-renderer-devfirst, then spawn a process to start start-main-dev process, is there a way to apply webpack config to the main process in dev mode? I think in production mode it does.

Related launch step:

"start-main-dev": "cross-env HOT=1 NODE_ENV=development electron -r @babel/register ./app/main.dev.js",

saw possiable solution from other project here: https://github.com/input-output-hk/daedalus/blob/develop/gulpfile.js#L44

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:14
  • Comments:17 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
MuLoocommented, Oct 28, 2021

we really need this pls 😂

3reactions
MrRobzcommented, Aug 15, 2021

some like this would be nice. taken from electron-forge docs "For the main process reloading, just type rs in the console you launched electron-forge`

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

electron main process hot reload or live reload - Stack Overflow
Electron's main process is node.js, which doesn't support reload modules from its cache out of the box. Unless node.js have support for it, ......
Read more >
Hot Reload in ElectronJS - GeeksforGeeks
Step 1: Navigate to an Empty Directory to setup the project, and run the following command, npm init. To generate the package. ·...
Read more >
Write and debug code by using Hot Reload - Visual Studio ...
Or, open Tools > Options > Debugging > .NET/C++ Hot Reload. The settings for Hot Reload include: Enable Hot Reload and Edit and...
Read more >
Hot reload - Flutter documentation
Hot reload works by injecting updated source code files into the running Dart Virtual Machine (VM). After the VM updates classes with the...
Read more >
hot reload main process? #2727 - GitHub
Summary Is there any way to hot reload main process when changing main process typescript files?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found