-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
24 lines (22 loc) · 851 Bytes
/
vite.config.ts
File metadata and controls
24 lines (22 loc) · 851 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
/* eslint-disable import/no-default-export */
import react from '@vitejs/plugin-react';
import path from 'path';
import { defineConfig } from 'vite';
export const viteConfig = defineConfig({
plugins: [react()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
'@store': path.resolve(__dirname, './src/store'),
'@components': path.resolve(__dirname, './src/components'),
'@hooks': path.resolve(__dirname, './src/hooks'),
'@lib': path.resolve(__dirname, './src/lib'),
'@types': path.resolve(__dirname, './src/types'),
'@views': path.resolve(__dirname, './src/views'),
'@config': path.resolve(__dirname, './src/config'),
'@validation': path.resolve(__dirname, './src/validation'),
'@mocks': path.resolve(__dirname, './src/mocks'),
},
},
});
export default viteConfig;