-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
30 lines (29 loc) · 1018 Bytes
/
vite.config.ts
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 react from '@vitejs/plugin-react'
import path from 'path'
import { defineConfig } from 'vite'
// https://vitejs.dev/config/
export default defineConfig(() => {
const baseConfig = {
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
'@components': path.resolve(__dirname, './src/components'),
'@context': path.resolve(__dirname, './src/components/context'),
'@hooks': path.resolve(__dirname, './src/components/hooks'),
'@interfaces': path.resolve(
__dirname,
'./src/components/interfaces'
),
'@tools': path.resolve(__dirname, './src/components/tools'),
'@type': path.resolve(__dirname, './src/components/types'),
'@ui': path.resolve(__dirname, './src/components/ui'),
'@icons': path.resolve(__dirname, './src/components/ui/icons'),
'@pages': path.resolve(__dirname, './src/pages'),
'@routes': path.resolve(__dirname, './src/routes'),
'@api': path.resolve(__dirname, './src/api')
}
},
plugins: [react()]
}
return baseConfig
})