Using this boilerplate as reference I created an Electron app. It uses webpack to bundle the scripts and express server to host it.
Webpack config is practically sam
I'm using React Router v4 and didn't want to fallback to the HashRouter, so I solved it with something amongst the likes of:
HashRouter
import { Redirect, BrowserRouter } from 'react-router-dom'; const App = () => ( {window.location.pathname.includes('index.html') && } );