-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Links to icons in webmanifest are not resolved during building #17779
Comments
In my opinion, the manifest file was not parsed correctly by Vite, so perhaps a plugin needs to be used to process the manifest file |
@cloudflypeng what a plugin? |
@budarin If you only want the manifest file to contain some resources that do not need vite build, you can put the icon file under public, which will be directly copied to the dist file. If you want the referenced resources to be rolled up and packaged, you may need to use plugins to perform dependency analysis on the JSON file This may be helpful |
using unhashed resources is not very good It is not very clear how to use plugins if the manifest is processed by vite - there will be a conflict at this point |
@cloudflypeng SOLVED |
You are very fast and skilled. |
Describe the bug
Have a link to webmanifest in html file
Original peace of code from webmanifest
After building have a webmanifest in dist with original paths & names as in development
The icons themselves are also missing in dist
all other icons in index.html processed: inserted correct paths and hashed icon names
I don't understand how #13252 was closed if it didn't solve this problem
PS: Moving webmanifest to public does not solve the problem at all, even in the link to the project in #13252, this problem is not solved - links to icons do not change in any way and do not display the actual hashed icon names and their location
Reproduction
demo project
Steps to reproduce
System Info
Used Package Manager
pnpm
Logs
Validations
The text was updated successfully, but these errors were encountered: