I have an HTML5 web app that I\'m packaging up via Electron. I\'m packaging via gulp-electron.
The issue I\'m having is that when the app is built and I run it, none
Electron approaches files through file:// protocol, so any base hrefs should start with '.'
To make it work, in index.html (in case '/' is your base href) change
into
..and the path errors will disappear.
So with electron apps we always need to compile the angular dist using a base href starting with '.', when / is your base, compile as
ng buid --prod --base-href ./