Conversation
- Add web app manifest (name, theme, icons) - Add service worker for offline static asset caching - Add PWA meta tags to all templates - Serve sw.js and manifest with correct MIME types - Update README and CONTRIBUTING with PWA docs Co-authored-by: Cursor <cursoragent@cursor.com>
| <link rel="stylesheet" href="/static/css/app.css"> | ||
| <link rel="icon" href="/static/favicon.svg" type="image/svg+xml"> | ||
| <link rel="manifest" href="/manifest.webmanifest"> | ||
| <meta name="theme-color" content="#6366f1"> |
There was a problem hiding this comment.
Isolate color into manifest
There was a problem hiding this comment.
Isolate color into manifest
Ok
- Isolate theme-color in manifest only (remove from HTML) - DRY: extract PWA meta into partials/pwa.tmpl, reuse in all templates - sw.js: Vue *.template.vue cached on first fetch via /static/ prefix - sw.js: use CACHE_EXACT and CACHE_PREFIXES arrays for path matching Co-authored-by: Cursor <cursoragent@cursor.com>
|
Addressed review comments: 1. Isolate color into manifest — Removed 2. DRY base template — Added 3. Vue templates wildcard — Removed 4. Use array for path matching — Replaced the long condition with |
Co-authored-by: Cursor <cursoragent@cursor.com>
Makes Mail Archive installable as a Progressive Web App on desktop and mobile.
Changes
manifest.webmanifest) with name, theme color, icons/sw.jsand/manifest.webmanifestroutes with correct MIME typesDocs
Requires HTTPS in production (localhost works for development).