-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
46 lines (27 loc) · 1.06 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import { defineConfig } from 'vite'
import reactRefresh from '@vitejs/plugin-react-refresh'
import react from '@vitejs/plugin-react';
import path from 'path'
export default defineConfig({
plugins: [reactRefresh(),react()],
server: {
port: 3000,
},
resolve: {
alias: {
'components': path.resolve(__dirname, 'src/components'),
'styles': path.resolve(__dirname, 'src/styles'),
'utils': path.resolve(__dirname, 'src/utils'),
'screens': path.resolve(__dirname, 'src/screens'),
'layouts': path.resolve(__dirname, 'src/layouts'),
'constants': path.resolve(__dirname, 'src/constants'),
'contexts': path.resolve(__dirname, 'src/contexts'),
'hooks': path.resolve(__dirname, 'src/hooks'),
'globalStates': path.resolve(__dirname, 'src/globalStates'),
'services': path.resolve(__dirname, 'src/services'),
'assets': path.resolve(__dirname, 'src/assets'),
'config': path.resolve(__dirname, 'src/config'),
'types': path.resolve(__dirname, 'src/types')
}
}
})