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 --- index.html | 2 +- public/apple-touch-icon.png | Bin 0 -> 50808 bytes public/pwa-192x192.png | Bin 0 -> 57954 bytes public/pwa-512x512.png | Bin 0 -> 319082 bytes vite.config.ts | 20 +++++++++++++++----- 5 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 public/apple-touch-icon.png create mode 100644 public/pwa-192x192.png create mode 100644 public/pwa-512x512.png diff --git a/index.html b/index.html index eca0307..d6f21b6 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ - + Kioku diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png new file mode 100644 index 0000000..18c290e Binary files /dev/null and b/public/apple-touch-icon.png differ diff --git a/public/pwa-192x192.png b/public/pwa-192x192.png new file mode 100644 index 0000000..94cda25 Binary files /dev/null and b/public/pwa-192x192.png differ diff --git a/public/pwa-512x512.png b/public/pwa-512x512.png new file mode 100644 index 0000000..51bbc67 Binary files /dev/null and b/public/pwa-512x512.png differ 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