-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvite.config.ts
More file actions
29 lines (28 loc) · 951 Bytes
/
vite.config.ts
File metadata and controls
29 lines (28 loc) · 951 Bytes
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
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import path from 'path';
export default defineConfig({
server: {
port: 3000,
},
define: {
global: 'globalThis',
},
resolve: {
alias: {
'@apis': path.resolve(__dirname, 'src/apis'),
'@components': path.resolve(__dirname, 'src/components'),
'@hooks': path.resolve(__dirname, 'src/hooks'),
'@interfaces': path.resolve(__dirname, 'src/interfaces'),
'@lib': path.resolve(__dirname, 'src/lib'),
'@pages': path.resolve(__dirname, 'src/pages'),
'@utils': path.resolve(__dirname, 'src/utils'),
'@states': path.resolve(__dirname, 'src/states'),
'@contexts': path.resolve(__dirname, 'src/contexts'),
'@styles': path.resolve(__dirname, 'src/styles'),
'@errors': path.resolve(__dirname, 'src/errors'),
'@routes': path.resolve(__dirname, 'src/routes'),
},
},
plugins: [react()],
});