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
Agree with Niekert. But I believe it is better to handle like this before any route management.
if ( window.location.pathname.includes('index.html') ) { location.pathname = ROUTES.ROOT; }