New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
manifest icons do not follow "base" path #713
Comments
example
|
Remove |
Uhmm, so the problem is the webmanifest is generated on root... |
Is it possible to check |
The sw scope needs to be there at build time, the webmanifest and the sw registration are built at runtime, we can bypass the problem in the sw registration but not for web manifest (static json file). You can remove the scope and pwa icons prefix from pwa configuration, the pwa plugin will use |
Context:
Whenever you're working with a project that's hosted 1 level deeper than root, you'll need to use
base
to show that your url is actually going to<domain>.com/<base>/<path>
, rather than root.Bug:
However, when making icons from the manifest in Vite.config.js; the icon URL pathing will not prepend with this base path, leaving the browser to search them at
<domain>.com/pwa-192x192.png
.Expected:
Manifest icons written in
Vite.config.js/.ts
should have their path prepended with--base=
/base: "",
The text was updated successfully, but these errors were encountered: