-
Notifications
You must be signed in to change notification settings - Fork 1
/
vite.config.ts
28 lines (26 loc) · 1.12 KB
/
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
import path from 'path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@/pages': path.resolve(__dirname, './src/pages/'),
'@/utils': path.resolve(__dirname, './src/utils/'),
'@/components': path.resolve(__dirname, './src/components/'),
'@/layouts': path.resolve(__dirname, './src/layouts/'),
'@/constants': path.resolve(__dirname, './src/constants/'),
'@/dtos': path.resolve(__dirname, './src/dtos/'),
'@/types': path.resolve(__dirname, './src/types/'),
'@/hooks': path.resolve(__dirname, './src/hooks/'),
'@/store': path.resolve(__dirname, './src/store/'),
'@/modals': path.resolve(__dirname, './src/modals/'),
'@/queries': path.resolve(__dirname, './src/queries/'),
'@/mutations': path.resolve(__dirname, './src/mutations/'),
'@/services': path.resolve(__dirname, './src/services/'),
'@/test-utils': path.resolve(__dirname, './test-utils/'),
'@/styles': path.resolve(__dirname, './src/styles/'),
}
},
})