diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-01 14:32:26 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-01 14:32:26 +0900 |
| commit | ae854335dd2f059bb3fcbb35a7c200f9047b96c5 (patch) | |
| tree | ee844818881dbb8d0038ef5a5f97bcac6155df20 | |
| parent | 620b4763b0331e5acf9784ce15318caa63c4facf (diff) | |
| download | kioku-ae854335dd2f059bb3fcbb35a7c200f9047b96c5.tar.gz kioku-ae854335dd2f059bb3fcbb35a7c200f9047b96c5.tar.zst kioku-ae854335dd2f059bb3fcbb35a7c200f9047b96c5.zip | |
feat(pwa): add icons
| -rw-r--r-- | index.html | 2 | ||||
| -rw-r--r-- | public/apple-touch-icon.png | bin | 0 -> 50808 bytes | |||
| -rw-r--r-- | public/pwa-192x192.png | bin | 0 -> 57954 bytes | |||
| -rw-r--r-- | public/pwa-512x512.png | bin | 0 -> 319082 bytes | |||
| -rw-r--r-- | vite.config.ts | 20 |
5 files changed, 16 insertions, 6 deletions
@@ -6,7 +6,7 @@ <meta name="theme-color" content="#1a535c" /> <meta name="description" content="A spaced repetition learning app" /> <link rel="icon" href="/icon.svg" type="image/svg+xml" /> - <link rel="apple-touch-icon" href="/icon.svg" /> + <link rel="apple-touch-icon" href="/apple-touch-icon.png" /> <title>Kioku</title> </head> <body> diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png Binary files differnew file mode 100644 index 0000000..18c290e --- /dev/null +++ b/public/apple-touch-icon.png diff --git a/public/pwa-192x192.png b/public/pwa-192x192.png Binary files differnew file mode 100644 index 0000000..94cda25 --- /dev/null +++ b/public/pwa-192x192.png diff --git a/public/pwa-512x512.png b/public/pwa-512x512.png Binary files differnew file mode 100644 index 0000000..51bbc67 --- /dev/null +++ b/public/pwa-512x512.png 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", }, ], }, |
