Refresh PWA icons and splash assets
This commit is contained in:
@@ -11,7 +11,16 @@ export default defineConfig(({ mode }) => {
|
||||
react(),
|
||||
VitePWA({
|
||||
registerType: "autoUpdate",
|
||||
includeAssets: ["icon.svg"],
|
||||
includeAssets: [
|
||||
"icon.svg",
|
||||
"favicon.ico",
|
||||
"apple-touch-icon.png",
|
||||
"icon-192.png",
|
||||
"icon-512.png",
|
||||
"apple-splash-1125x2436.png",
|
||||
"apple-splash-1170x2532.png",
|
||||
"apple-splash-1290x2796.png",
|
||||
],
|
||||
workbox: {
|
||||
runtimeCaching: [
|
||||
{
|
||||
@@ -31,18 +40,27 @@ export default defineConfig(({ mode }) => {
|
||||
],
|
||||
},
|
||||
manifest: {
|
||||
id: "/",
|
||||
name: "Walkup",
|
||||
short_name: "Walkup",
|
||||
description: "Collaborative baseball walk-up songs.",
|
||||
theme_color: "#132238",
|
||||
background_color: "#f4ede2",
|
||||
display: "standalone",
|
||||
display_override: ["standalone", "minimal-ui"],
|
||||
scope: "/",
|
||||
start_url: "/",
|
||||
icons: [
|
||||
{
|
||||
src: "/icon.svg",
|
||||
sizes: "any",
|
||||
type: "image/svg+xml",
|
||||
src: "/icon-192.png",
|
||||
sizes: "192x192",
|
||||
type: "image/png",
|
||||
purpose: "any maskable",
|
||||
},
|
||||
{
|
||||
src: "/icon-512.png",
|
||||
sizes: "512x512",
|
||||
type: "image/png",
|
||||
purpose: "any maskable"
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user