X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=vite.config.js;h=15ff457453ac9328dc1ee17eb5d949cd7264d81a;hb=acd6a8911be0804374b5600f2125e97eb178bfa5;hp=b568fe6d96e065a2e257241738d68c68e3693867;hpb=73d52dbd380471100a6a1eca341b0e98aa5c692e;p=github%2Fbastienwirtz%2Fhomer.git diff --git a/vite.config.js b/vite.config.js index b568fe6..15ff457 100644 --- a/vite.config.js +++ b/vite.config.js @@ -6,6 +6,7 @@ import vue from "@vitejs/plugin-vue"; // https://vitejs.dev/config/ export default defineConfig({ + base: "", build: { assetsDir: "resources", }, @@ -20,25 +21,24 @@ export default defineConfig({ short_name: "Homer", description: "Home Server Dashboard", theme_color: "#3367D6", + start_url: "../", + scope: "../", icons: [ { - src: "pwa-192x192.png", + src: "./icons/pwa-192x192.png", sizes: "192x192", type: "image/png", }, { - src: "pwa-512x512.png", + src: "./icons/pwa-512x512.png", sizes: "512x512", type: "image/png", }, - { - src: 'pwa-512x512.png', - sizes: '512x512', - type: 'image/png', - purpose: 'any maskable' - } ], }, + workbox: { + navigateFallback: null, + }, }), ], resolve: {