It took me several hours to find this solution. I will add this clarification:
- remove from
./electron/app/index.html
the tag<base href="/" />
- add this property to
./electron/package.json
:"homepage": "."
@jcesarmobile I would observe that it is the capacitor that is creating the package.json
file. So it does know something: a) it is electron and b) the files are served from file protocol. So it could at least add the homepage value. The change to the base href
could at least be documented.