I'm trying to start an Electron project, but running ionic capacitor run electron results in a blank screen with 5 console errors that say GET file:///c:/runtime.js net:ERR_FILE_NOT_FOUND.
I'm pretty sure it has to do with <base href="/"> needing to be changed to <base href="./"> but I can't get the change to stick.
If I manually change the base tag in /www/index.html then run ionic capacitor run electron the value in <base> is automatically changed back to the default.
What's the correct way to make the change stick so I can build an Electron app? Steps to reproduce:
1. ionic start test blank --capacitor --type angular
2. cd test
3. open `/tsconfig.json` and change `target` from `es2015` to `es5`
4. ionic build
5. open `/www/index.html` and change `<base href="/">` to <base href="./">`
6. ionic cap add electron
7. ionic cap run electron
Step 7 is where <base> gets overwritten again because I see run app:build listed in the terminal... Any advice on how to get it to work as expected? I imagine there is a better method than manually changing code because that seems tedious in a production app