-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathvite.config.ts
More file actions
49 lines (48 loc) Β· 1.61 KB
/
vite.config.ts
File metadata and controls
49 lines (48 loc) Β· 1.61 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
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import svgr from "vite-plugin-svgr";
import path from "path";
import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
// https://vite.dev/config/
export default defineConfig({
plugins: [
react(),
vanillaExtractPlugin(),
svgr({
svgrOptions: {
plugins: ["@svgr/plugin-svgo", "@svgr/plugin-jsx"],
svgoConfig: {
plugins: [
{
name: "preset-default",
params: {
overrides: {
removeViewBox: false,
},
},
},
],
},
},
}),
],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
"@app": path.resolve(__dirname, "./src/app"),
"@pages": path.resolve(__dirname, "./src/pages"),
"@widgets": path.resolve(__dirname, "./src/widgets"),
"@features": path.resolve(__dirname, "./src/features"),
"@shared": path.resolve(__dirname, "./src/shared"),
"@images": path.resolve(__dirname, "./src/shared/assets/images"),
"@icons": path.resolve(__dirname, "./src/shared/assets/icons"),
"@api": path.resolve(__dirname, "./src/shared/api"),
"@config": path.resolve(__dirname, "./src/shared/config"),
"@model": path.resolve(__dirname, "./src/shared/model"),
"@styles": path.resolve(__dirname, "./src/shared/styles"),
"@types": path.resolve(__dirname, "./src/shared/types"),
"@ui": path.resolve(__dirname, "./src/shared/ui"),
"@lib": path.resolve(__dirname, "./src/shared/lib"),
},
},
});