PWA: PNG-Icons für Homescreen (iOS 180px, Android 192/512px)
This commit is contained in:
parent
51c0fe58aa
commit
50810c4b50
5 changed files with 5 additions and 3 deletions
|
|
@ -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">
|
||||
|
|
|
|||
BIN
app/static/apple-touch-icon.png
Normal file
BIN
app/static/apple-touch-icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.8 KiB |
BIN
app/static/icons/icon-192.png
Normal file
BIN
app/static/icons/icon-192.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.7 KiB |
BIN
app/static/icons/icon-512.png
Normal file
BIN
app/static/icons/icon-512.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue