-
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) · 820 Bytes
/
Copy pathvite.config.ts
File metadata and controls
24 lines (22 loc) · 820 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
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@components': path.resolve(__dirname, 'src/components'),
'@layout': path.resolve(__dirname, 'src/layout'),
'@pages': path.resolve(__dirname, 'src/pages'),
'@features': path.resolve(__dirname, 'src/features'),
'@data': path.resolve(__dirname, 'src/data'),
'@hooks': path.resolve(__dirname, 'src/hooks'),
'@theme': path.resolve(__dirname, 'src/theme'),
'@routes': path.resolve(__dirname, 'src/routes'),
},
},
});