-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
25 lines (24 loc) · 984 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
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: {
'@assets': path.resolve(__dirname, './src/assets'),
'@components': path.resolve(__dirname, './src/components'),
'@hooks': path.resolve(__dirname, './src/hooks'),
'@pages': path.resolve(__dirname, './src/pages'),
'@routes': path.resolve(__dirname, './src/routes'),
'@store': path.resolve(__dirname, './src/store'),
'@layouts': path.resolve(__dirname, './src/layouts'),
'@utils': path.resolve(__dirname, './src/utils'),
'@services': path.resolve(__dirname, './src/services'),
'@styles': path.resolve(__dirname, './src/styles'),
'@types': path.resolve(__dirname, './src/types'),
'@validations': path.resolve(__dirname, './src/validations'),
},
},
plugins: [react(), svgr()],
});