-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvite.config.js
executable file
·36 lines (29 loc) · 1.13 KB
/
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
31
32
33
34
35
36
import react from "@vitejs/plugin-react"
import { defineConfig } from "vite"
import svgr from "vite-plugin-svgr"
import path from "path"
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), svgr()],
build: {
outDir: "build",
},
resolve: {
alias: {
// src: path.resolve(__dirname, "./src/"),
hooks: path.resolve(__dirname, "./src/hooks/"),
public: path.resolve(__dirname, "./public/"),
images: path.resolve(__dirname, "./public/image/"),
icons: path.resolve(__dirname, "./public/image/icons/"),
data: path.resolve(__dirname, "./src/data/"),
components: path.resolve(__dirname, "./src/components/"),
common: path.resolve(__dirname, "./src/common/"),
constants: path.resolve(__dirname, "./src/constants/"),
assets: path.resolve(__dirname, "./src/assets/"),
utils: path.resolve(__dirname, "./src/utils/"),
pages: path.resolve(__dirname, "./src/pages/"),
locales: path.resolve(__dirname, "./src/locales/"),
constants: path.resolve(__dirname, "./src/constants/"),
},
},
})