feat: add PWA support (manifest, service worker, icons)
Adds vite-plugin-pwa with a generated manifest, icon set derived from the Stalwart mark (192/512/maskable/apple-touch), and theme-color meta tags. /api and /jmap are excluded from the service worker's navigate fallback and are never precached or runtime-cached, so authenticated mail data can't end up in Cache Storage. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
25a38cd560
commit
da2c99990f
@@ -5,7 +5,12 @@
|
||||
<meta charset="UTF-8" />
|
||||
<base href="/" />
|
||||
<link rel="icon" type="image/x-icon" href="favicon.ico" />
|
||||
<link rel="apple-touch-icon" href="pwa/apple-touch-icon.png" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="theme-color" content="#ffffff" media="(prefers-color-scheme: light)" />
|
||||
<meta name="theme-color" content="#09090b" media="(prefers-color-scheme: dark)" />
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<meta name="apple-mobile-web-app-title" content="Stalwart" />
|
||||
<title>Stalwart WebUI</title>
|
||||
</head>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user