-
Notifications
You must be signed in to change notification settings - Fork 1
/
vite.config.ts
29 lines (28 loc) · 956 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
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { resolve } from 'path';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@api': resolve(__dirname, './src/api'),
'@assets': resolve(__dirname, './src/assets'),
'@components': resolve(__dirname, './src/components'),
'@constants': resolve(__dirname, './src/constants'),
'@hooks': resolve(__dirname, './src/hooks'),
'@mocks': resolve(__dirname, './src/mocks'),
'@pages': resolve(__dirname, './src/pages'),
'@router': resolve(__dirname, './src/router'),
'@store': resolve(__dirname, './src/store'),
'@styles': resolve(__dirname, './src/styles'),
'@type': resolve(__dirname, './src/types'),
'@utils': resolve(__dirname, './src/utils'),
'@': resolve(__dirname, './src'),
},
},
server: {
cors: false,
proxy: {},
},
});