aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--index.html2
-rw-r--r--public/apple-touch-icon.pngbin0 -> 50808 bytes
-rw-r--r--public/pwa-192x192.pngbin0 -> 57954 bytes
-rw-r--r--public/pwa-512x512.pngbin0 -> 319082 bytes
-rw-r--r--vite.config.ts20
5 files changed, 16 insertions, 6 deletions
diff --git a/index.html b/index.html
index eca0307..d6f21b6 100644
--- a/index.html
+++ b/index.html
@@ -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
new file mode 100644
index 0000000..18c290e
--- /dev/null
+++ b/public/apple-touch-icon.png
Binary files differ
diff --git a/public/pwa-192x192.png b/public/pwa-192x192.png
new file mode 100644
index 0000000..94cda25
--- /dev/null
+++ b/public/pwa-192x192.png
Binary files differ
diff --git a/public/pwa-512x512.png b/public/pwa-512x512.png
new file mode 100644
index 0000000..51bbc67
--- /dev/null
+++ b/public/pwa-512x512.png
Binary files 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",
},
],
},