-
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathvite.config.js
More file actions
27 lines (26 loc) · 813 Bytes
/
vite.config.js
File metadata and controls
27 lines (26 loc) · 813 Bytes
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
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import path from "path";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
"@": path.resolve(__dirname, "src"),
"@utils": path.resolve(__dirname, "src/utils"),
"@components": path.resolve(__dirname, "src/components"),
"@locales": path.resolve(__dirname, "src/locales"),
"@renderers": path.resolve(__dirname, "src/components/renderer/renderers"),
"@community": path.resolve(__dirname, "src/components/community"),
},
},
build: {
cssTarget: "chrome61",
esbuild: {
drop: ["console", "debugger"],
},
},
preview: {
port: 1443,
},
});