aboutsummaryrefslogtreecommitdiffhomepage
path: root/vite.config.js
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2022-07-13 13:46:03 -0700
committerGitHub <noreply@github.com>2022-07-13 13:46:03 -0700
commitc11c45a661addf377ac5f4773ba39f5ef66ec155 (patch)
tree204cd561549dd6424d7e07c88b042e3bce62d608 /vite.config.js
parentd57821b5fa8b994bc4082f7565a072090ff288a1 (diff)
parent0eca982f8bc89bbac3ed4fee248fc53b7c4c0527 (diff)
downloadhomer-c11c45a661addf377ac5f4773ba39f5ef66ec155.tar.gz
homer-c11c45a661addf377ac5f4773ba39f5ef66ec155.tar.zst
homer-c11c45a661addf377ac5f4773ba39f5ef66ec155.zip
Merge pull request #482 from bastienwirtz/vuejs-3
Vuejs 3
Diffstat (limited to 'vite.config.js')
-rw-r--r--vite.config.js44
1 files changed, 44 insertions, 0 deletions
diff --git a/vite.config.js b/vite.config.js
new file mode 100644
index 0000000..cee8727
--- /dev/null
+++ b/vite.config.js
@@ -0,0 +1,44 @@
1import { VitePWA } from "vite-plugin-pwa";
2import { fileURLToPath, URL } from "url";
3
4import { defineConfig } from "vite";
5import vue from "@vitejs/plugin-vue";
6
7// https://vitejs.dev/config/
8export default defineConfig({
9 base: "",
10 build: {
11 assetsDir: "resources",
12 },
13 plugins: [
14 vue(),
15 VitePWA({
16 registerType: "autoUpdate",
17 useCredentials: true,
18 manifestFilename: "assets/manifest.json",
19 manifest: {
20 name: "Homer dashboard",
21 short_name: "Homer",
22 description: "Home Server Dashboard",
23 theme_color: "#3367D6",
24 icons: [
25 {
26 src: "./icons/pwa-192x192.png",
27 sizes: "192x192",
28 type: "image/png",
29 },
30 {
31 src: "./icons/pwa-512x512.png",
32 sizes: "512x512",
33 type: "image/png",
34 },
35 ],
36 },
37 }),
38 ],
39 resolve: {
40 alias: {
41 "@": fileURLToPath(new URL("./src", import.meta.url)),
42 },
43 },
44});