-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.mts
More file actions
50 lines (48 loc) · 1.64 KB
/
Copy pathvite.config.mts
File metadata and controls
50 lines (48 loc) · 1.64 KB
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
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import path from "path";
const config = defineConfig({
plugins: [react()],
server: {
port: 3000,
host: true,
},
build: {
outDir: "dist",
emptyOutDir: true,
},
assetsInclude: ["**/*.svg"],
css: {
preprocessorOptions: {
scss: {
api: "modern-compiler",
},
},
},
resolve: {
alias: {
"@/src": path.resolve(__dirname, "./src"),
"@/worker": path.resolve(__dirname, "./worker"),
"@/app": path.resolve(__dirname, "./src/app"),
"@/assets": path.resolve(__dirname, "./src/assets"),
"@/components": path.resolve(__dirname, "./src/components"),
"@/features": path.resolve(__dirname, "./src/features"),
"@/hooks": path.resolve(__dirname, "./src/hooks"),
"@/pages": path.resolve(__dirname, "./src/pages"),
"@/routes": path.resolve(__dirname, "./src/routes"),
"@/themes": path.resolve(__dirname, "./src/themes"),
"@/styles": path.resolve(__dirname, "./src/styles"),
"@/utils": path.resolve(__dirname, "./src/utils"),
"@/services": path.resolve(__dirname, "./src/services"),
"@/config": path.resolve(__dirname, "./src/config"),
"@/types": path.resolve(__dirname, "./src/types"),
"@/store": path.resolve(__dirname, "./src/store"),
"@/layout": path.resolve(__dirname, "./src/layout"),
"@/data": path.resolve(__dirname, "./src/data"),
"@/helper": path.resolve(__dirname, "./src/helper"),
"@/i18n": path.resolve(__dirname, "./src/i18n"),
"@/shared": path.resolve(__dirname, "./shared"),
},
},
});
export default config;