PWA: PNG-Icons für Homescreen (iOS 180px, Android 192/512px)

This commit is contained in:
rene 2026-05-22 08:12:32 +02:00
parent 51c0fe58aa
commit 50810c4b50
5 changed files with 5 additions and 3 deletions

View file

@ -9,7 +9,7 @@
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="apple-touch-icon" sizes="180x180" href="/icons/icon-512.svg" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View file

@ -19,8 +19,10 @@ export default defineConfig({
display: 'standalone',
start_url: '/',
icons: [
{ src: '/icons/icon-512.svg', sizes: '512x512', type: 'image/svg+xml', purpose: 'any maskable' },
{ src: '/favicon.svg', sizes: '64x64', type: 'image/svg+xml', purpose: 'any' }
{ src: '/icons/icon-512.png', sizes: '512x512', type: 'image/png', purpose: 'any maskable' },
{ src: '/icons/icon-192.png', sizes: '192x192', type: 'image/png', purpose: 'any maskable' },
{ src: '/apple-touch-icon.png', sizes: '180x180', type: 'image/png', purpose: 'any' },
{ src: '/favicon.svg', sizes: 'any', type: 'image/svg+xml', purpose: 'any' }
]
},
injectManifest: {