-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.js
30 lines (28 loc) · 998 Bytes
/
vite.config.js
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
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import autoprefixer from "autoprefixer";
import path from "node:path";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
css: {
postcss: {
plugins: [autoprefixer],
},
},
resolve: {
alias: {
"@asset": path.resolve(__dirname, "./src/assets/styles"),
"@images": path.resolve(__dirname, "./src/assets/images"),
"@components": path.resolve(__dirname, "./src/components"),
"@data": path.resolve(__dirname, "./src/data"),
"@hooks": path.resolve(__dirname, "./src/hooks"),
"@pages": path.resolve(__dirname, "./src/pages"),
"@routing": path.resolve(__dirname, "./src/Routing"),
"@schemas": path.resolve(__dirname, "./src/schemas"),
"@services": path.resolve(__dirname, "./src/services"),
"@store": path.resolve(__dirname, "./src/store"),
"@utils": path.resolve(__dirname, "./src/utils"),
},
},
});