Open DKulan opened 3 years ago
just add publicPath: '/',
, i think its publicPath: 'auto',
by default
new WebpackPwaManifest({
publicPath: '/' ,
// the rest of code
})
just add
publicPath: '/',
, i think itspublicPath: 'auto',
by defaultnew WebpackPwaManifest({ publicPath: '/' , // the rest of code })
Thanks, I've added publicPath: '.' and everything works now :)
...this resolved my issue, too. Many thanks!
FYI, when I tried the above solution, it fixed the problem on localhost, but when I pushed to GitHub, I had a new issue with the GitHub pages version. On the GitHub deployed app, the browser took the "/" as referring to the root, and it confused dist/assets with /assets at the root level. The solution that fixed this was to replace the publicPath setting with "./". The build output for my manifest looked like this "./assets/icons/icon_512x512.png". Works the same on localhost and the live deployed version now.
Trying to generate a manifest based on these options:
but I get "auto" appending in the icons src attribute for some reason: