forked from volunteer-community/volunteer-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
24 lines (24 loc) · 835 Bytes
/
vite.config.ts
File metadata and controls
24 lines (24 loc) · 835 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
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import path from 'path';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@apis': path.resolve(__dirname, 'src/apis'),
'@assets': path.resolve(__dirname, 'src/assets'),
'@components': path.resolve(__dirname, 'src/components'),
'@hooks': path.resolve(__dirname, 'src/hooks'),
'@interfaces': path.resolve(__dirname, 'src/interfaces'),
'@pages': path.resolve(__dirname, 'src/pages'),
'@routers': path.resolve(__dirname, 'src/routers'),
'@constants': path.resolve(__dirname, 'src/constants'),
'@stores': path.resolve(__dirname, 'src/stores'),
'@utils': path.resolve(__dirname, 'src/utils'),
},
},
server: {
port: 3000,
},
});