-
Notifications
You must be signed in to change notification settings - Fork 5
/
vite.config.ts
55 lines (53 loc) · 1.45 KB
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import copy from "rollup-plugin-copy";
import { viteStaticCopy } from "vite-plugin-static-copy";
//import vuetify from "vite-plugin-vuetify";
import { VitePWA } from "vite-plugin-pwa";
// https://vitejs.dev/config/
export default defineConfig({
optimizeDeps: {
exclude: ["monaco-editor"],
},
plugins: [
viteStaticCopy({
// Yeah, this directly copies to the dist folder
targets: [{ src: "node_modules/monaco-editor/min/vs/**/*", dest: "assets" }],
flatten: false,
}),
VitePWA({
includeAssets: ["favicon.svg", "favicon.ico", "robots.txt", "apple-touch-icon.png"],
srcDir: "src",
manifest: {
name: "TGI Pages",
short_name: "tgi-pages",
description: "Helpful tools for the TGI Course at the TU Vienna",
theme_color: "#80CBC4",
icons: [
{
src: "pwa-192x192.png",
sizes: "192x192",
type: "image/png",
},
{
src: "pwa-512x512.png",
sizes: "512x512",
type: "image/png",
purpose: "any maskable",
},
],
},
workbox: {
globPatterns: ["**/*.{js,css,html,ttf,woff2}"],
},
injectManifest: {
globPatterns: ["**/*.{js,css,html,ttf,woff2}"],
},
}),
vue(),
//vuetify({ autoImport: true }),
],
/*build: {
target: "esnext",
},*/
});