feat: disable static manifest generation, add manual manifest link for dynamic serving
This commit is contained in:
parent
595b330741
commit
acc83401f4
2 changed files with 2 additions and 28 deletions
|
|
@ -5,6 +5,7 @@
|
|||
<link rel="icon" type="image/png" sizes="32x32" href="/pwa-icons/favicon-32x32.png" />
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/pwa-icons/favicon-16x16.png" />
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/pwa-icons/apple-touch-icon-180x180.png" />
|
||||
<link rel="manifest" href="/manifest.webmanifest" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
||||
<meta name="theme-color" content="#1e1b2e" />
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
|
|
|
|||
|
|
@ -26,34 +26,7 @@ export default defineConfig(({ mode }) => {
|
|||
"logo_dark.png",
|
||||
"logo_white.png",
|
||||
],
|
||||
manifest: {
|
||||
name: mode === "staging" ? "XTablo (Staging)" : "XTablo",
|
||||
short_name: "XTablo",
|
||||
description: "Collaborative project management for construction teams",
|
||||
start_url: "/",
|
||||
display: "standalone",
|
||||
orientation: "any",
|
||||
theme_color: "#1e1b2e",
|
||||
background_color: "#1e1b2e",
|
||||
icons: [
|
||||
{
|
||||
src: "pwa-icons/pwa-192x192.png",
|
||||
sizes: "192x192",
|
||||
type: "image/png",
|
||||
},
|
||||
{
|
||||
src: "pwa-icons/pwa-512x512.png",
|
||||
sizes: "512x512",
|
||||
type: "image/png",
|
||||
},
|
||||
{
|
||||
src: "pwa-icons/pwa-512x512-maskable.png",
|
||||
sizes: "512x512",
|
||||
type: "image/png",
|
||||
purpose: "maskable",
|
||||
},
|
||||
],
|
||||
},
|
||||
manifest: false,
|
||||
workbox: {
|
||||
globPatterns: ["**/*.{js,css,html,ico,png,jpg,svg,woff,woff2}"],
|
||||
globIgnores: ["**/*.map"],
|
||||
|
|
|
|||
Loading…
Reference in a new issue