Run web page within both a web server and Electron wrapper


I’m trying to build an Electron app which has an IPC between main and renderer processes.
I’m using JSPM to build the web app before serving it by Electron, but I can’t find the right setup which includes an IPC client.
Tried that with several libraries, including npm:electron itself.

I’m doing that in order to be able to run the web app separately in the browser for testing/debugging/separation purposes.

Can anyone direct me to the right setup or solution for this?



Don’t know about JSPM, but you might figure out by looking at how it can be done using Webpack :