-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
42 lines (40 loc) · 859 Bytes
/
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
import { resolve } from "path";
import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
// https://vite.dev/config/
export default defineConfig({
plugins: [vue()],
root: resolve("./vue"),
base: "/static/",
server: {
host: "127.0.0.1",
port: 5173,
open: false,
watch: {
usePolling: true,
disableGlobbing: false,
},
},
resolve: {
extensions: [".js", ".json"],
alias: {
"@": fileURLToPath(new URL("./vue/src", import.meta.url)),
},
},
build: {
outDir: resolve("./vue/dist"),
assetsDir: "",
manifest: true,
emptyOutDir: true,
target: "es2015",
rollupOptions: {
input: {
main: resolve("./vue/src/main.ts"),
},
output: {
chunkFileNames: undefined,
},
},
},
});