From 092f51b8ec2c87fe9ed6ad6ae21b1acde346b7e4 Mon Sep 17 00:00:00 2001 From: David Date: Sat, 26 Nov 2022 20:22:58 +0200 Subject: [PATCH] fix: fixed manifest images not being available --- .../assets/images/maskable_icon_x192.png | Bin .../assets/images/maskable_icon_x512.png | Bin {src => public}/assets/images/rmg_logo_192.png | Bin {src => public}/assets/images/rmg_logo_512.png | Bin vite.config.ts | 12 ++++-------- 5 files changed, 4 insertions(+), 8 deletions(-) rename {src => public}/assets/images/maskable_icon_x192.png (100%) rename {src => public}/assets/images/maskable_icon_x512.png (100%) rename {src => public}/assets/images/rmg_logo_192.png (100%) rename {src => public}/assets/images/rmg_logo_512.png (100%) diff --git a/src/assets/images/maskable_icon_x192.png b/public/assets/images/maskable_icon_x192.png similarity index 100% rename from src/assets/images/maskable_icon_x192.png rename to public/assets/images/maskable_icon_x192.png diff --git a/src/assets/images/maskable_icon_x512.png b/public/assets/images/maskable_icon_x512.png similarity index 100% rename from src/assets/images/maskable_icon_x512.png rename to public/assets/images/maskable_icon_x512.png diff --git a/src/assets/images/rmg_logo_192.png b/public/assets/images/rmg_logo_192.png similarity index 100% rename from src/assets/images/rmg_logo_192.png rename to public/assets/images/rmg_logo_192.png diff --git a/src/assets/images/rmg_logo_512.png b/public/assets/images/rmg_logo_512.png similarity index 100% rename from src/assets/images/rmg_logo_512.png rename to public/assets/images/rmg_logo_512.png diff --git a/vite.config.ts b/vite.config.ts index 6d0e0b4..45c79b7 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -8,10 +8,6 @@ export default defineConfig({ react(), VitePWA({ registerType: "autoUpdate", - includeAssets: [ - "src/assets/images/rmg_logo.png", - "src/assets/images/rmg_logo_180.png", - ], manifest: { name: "RMG Utilities for Stellaris", short_name: "RMG Utils", @@ -20,23 +16,23 @@ export default defineConfig({ theme_color: "#25262b", icons: [ { - src: "src/assets/images/rmg_logo_192.png", + src: "/assets/images/rmg_logo_192.png", sizes: "192x192", type: "image/png", }, { - src: "src/assets/images/rmg_logo_512.png", + src: "/assets/images/rmg_logo_512.png", sizes: "512x512", type: "image/png", }, { - src: "src/assets/images/maskable_icon_x192.png", + src: "/assets/images/maskable_icon_x192.png", sizes: "192x192", type: "image/png", purpose: "maskable", }, { - src: "src/assets/images/maskable_icon_x512.png", + src: "/assets/images/maskable_icon_x512.png", sizes: "512x512", type: "image/png", purpose: "maskable",