From ae854335dd2f059bb3fcbb35a7c200f9047b96c5 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 1 Feb 2026 14:32:26 +0900 Subject: feat(pwa): add icons --- vite.config.ts | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'vite.config.ts') diff --git a/vite.config.ts b/vite.config.ts index 5dfc1e0..7eb818e 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -13,7 +13,7 @@ export default defineConfig({ react(), VitePWA({ registerType: "autoUpdate", - includeAssets: ["icon.svg"], + includeAssets: ["icon.svg", "apple-touch-icon.png"], manifest: { name: "Kioku", short_name: "Kioku", @@ -25,10 +25,20 @@ export default defineConfig({ start_url: "/", icons: [ { - src: "icon.svg", - sizes: "any", - type: "image/svg+xml", - purpose: "any maskable", + src: "pwa-192x192.png", + sizes: "192x192", + type: "image/png", + }, + { + src: "pwa-512x512.png", + sizes: "512x512", + type: "image/png", + }, + { + src: "pwa-512x512.png", + sizes: "512x512", + type: "image/png", + purpose: "maskable", }, ], }, -- cgit v1.3-1-g0d28