Is there any way now to specify that an SVG icon in "manifest.json" for a PWA should be used for all possible sizes? (Chrome/chromium is my main target now. Firefox will hopefully follow.)
"icons": [
{
"src": "path-to-icon.svg",
"purpose": "maskable any",
"sizes: "???"
}
],
Is there any way now to specify that an SVG icon in "manifest.json" for a PWA should be used for all possible sizes? (Chrome/chromium is my main target now. Firefox will hopefully follow.)
"icons": [
{
"src": "path-to-icon.svg",
"purpose": "maskable any",
"sizes: "???"
}
],
"sizes": "any" didn't work for me. I used the following configuration:
{
"src": "logo.svg",
"sizes": "48x48 72x72 96x96 128x128 256x256 512x512",
"type": "image/svg+xml",
"purpose": "any"
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.