aboutsummaryrefslogtreecommitdiffhomepage
path: root/vite.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'vite.config.js')
-rw-r--r--vite.config.js33
1 files changed, 16 insertions, 17 deletions
diff --git a/vite.config.js b/vite.config.js
index 0400b78..262f311 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -1,4 +1,4 @@
1import { VitePWA } from 'vite-plugin-pwa' 1import { VitePWA } from "vite-plugin-pwa";
2import { fileURLToPath, URL } from "url"; 2import { fileURLToPath, URL } from "url";
3 3
4import { defineConfig } from "vite"; 4import { defineConfig } from "vite";
@@ -10,30 +10,30 @@ export default defineConfig({
10 assetsDir: "resources", 10 assetsDir: "resources",
11 }, 11 },
12 plugins: [ 12 plugins: [
13 vue(), 13 vue(),
14 VitePWA({ 14 VitePWA({
15 registerType: 'autoUpdate', 15 registerType: "autoUpdate",
16 useCredentials: true, 16 useCredentials: true,
17 manifestFilename: "assets/manifest.json", 17 manifestFilename: "assets/manifest.json",
18 manifest: { 18 manifest: {
19 name: 'Homer dashboard', 19 name: "Homer dashboard",
20 short_name: 'Homer', 20 short_name: "Homer",
21 description: 'Home Server Dashboard', 21 description: "Home Server Dashboard",
22 theme_color: '#3367D6', 22 theme_color: "#3367D6",
23 icons: [ 23 icons: [
24 { 24 {
25 src: 'pwa-192x192.png', 25 src: "pwa-192x192.png",
26 sizes: '192x192', 26 sizes: "192x192",
27 type: 'image/png' 27 type: "image/png",
28 }, 28 },
29 { 29 {
30 src: 'pwa-512x512.png', 30 src: "pwa-512x512.png",
31 sizes: '512x512', 31 sizes: "512x512",
32 type: 'image/png' 32 type: "image/png",
33 } 33 },
34 ], 34 ],
35 }, 35 },
36 }) 36 }),
37 ], 37 ],
38 resolve: { 38 resolve: {
39 alias: { 39 alias: {
@@ -41,4 +41,3 @@ export default defineConfig({
41 }, 41 },
42 }, 42 },
43}); 43});
44