forked from KGUardians/FARMPAL-WEB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
27 lines (26 loc) · 858 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
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: {
'@assets': resolve(__dirname, './src/assets'),
'@components': resolve(__dirname, './src/components'),
'@constants': resolve(__dirname, './src/constants'),
'@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: {},
},
});