It's important to apply the webpack-target-electron-renderer plugin, this repo has it set up already, so don't worry about it.
Lastly, make Electron listen to your webpack-dev-server host, I suggest googling around as there are multiple ways you can achieve that and I'm not sure which is the best one.
If you manage to get it to work, make sure to pull request.
Host a
webpack-dev-server
(It's already implemented, just comment it out) and apply thewebpack.HotModuleReplacementPlugin
in the dev-webpack config(same file in the link).It's important to apply the
webpack-target-electron-renderer
plugin, this repo has it set up already, so don't worry about it.Lastly, make Electron listen to your
webpack-dev-server
host, I suggest googling around as there are multiple ways you can achieve that and I'm not sure which is the best one.If you manage to get it to work, make sure to pull request.