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