We have collection of more than 1 Million open source products ranging from Enterprise product to
small libraries in all platforms. We aggregate information from all open source repositories.
Search and find the best for your needs. Check out projects section.
It just works. When files used in the main process are changed, the app is restarted, and when files used in the browser window are changed, the page is reloaded.Note that it will not work correctly if you transpile the main process JS files of your app, but it doesn't make sense to do that anyway.
Normally you would just use win.loadURL('file://…'), but that doesn't work when you're making a single-page web app, which most Electron apps are today, as history.pushState()'ed URLs don't exist on disk. It serves files if they exist, and falls back to index.html if not, which means you can use router modules like react-router, vue-router, etc.The directory to serve, relative to the app root directory.
The biggest benefit of this module over the built-in IPC is that it enables you to send a message and get the response back in the same call. This would usually require multiple IPC subscriptions. You can use this module directly in both the main and renderer process.