Added maskable icons to PWA

This commit is contained in:
Fabio Manganiello 2025-03-31 21:09:00 +02:00
parent 72389406e0
commit 83db575be5
Signed by: blacklight
GPG key ID: D90FBA7F76362774
5 changed files with 12 additions and 0 deletions

Binary file not shown.

Before

(image error) Size: 1.3 KiB

After

(image error) Size: 5.5 KiB

Binary file not shown.

Before

(image error) Size: 2.5 KiB

After

(image error) Size: 16 KiB

Binary file not shown.

After

(image error) Size: 3.6 KiB

Binary file not shown.

After

(image error) Size: 11 KiB

View file

@ -46,6 +46,18 @@ export default defineConfig((env) => {
sizes: "512x512",
type: "image/png"
},
{
src: "./icons/pwa-maskable-192x192.png",
sizes: "192x192",
type: "image/png",
purpose: "maskable"
},
{
src: "./icons/pwa-maskable-512x512.png",
sizes: "512x512",
type: "image/png",
purpose: "maskable"
}
],
start_url: ".",
display: "standalone"