-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvite.config.ts
28 lines (27 loc) · 987 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
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import svgr from 'vite-plugin-svgr';
import path from 'path';
// https://vitejs.dev/config/
export default defineConfig({
resolve: {
alias: {
'@images': path.resolve(__dirname, './src/assets/images'),
'@scss': path.resolve(__dirname, './src/scss'),
'@hooks': path.resolve(__dirname, './src/hooks'),
'@utils': path.resolve(__dirname, './src/utils'),
'@components': path.resolve(__dirname, './src/components'),
'@ui': path.resolve(__dirname, './src/components/ui'),
'@contexts': path.resolve(__dirname, './src/contexts'),
'@data': path.resolve(__dirname, './src/data'),
'@layouts': path.resolve(__dirname, './src/layouts'),
'@services': path.resolve(__dirname, './src/services'),
'@pages': path.resolve(__dirname, './src/pages'),
},
},
plugins: [react(), svgr()],
define: {
VITE_BASE_URL: process.env.VITE_BASE_URL,
VITE_API_URL: process.env.VITE_API_URL,
},
});