-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
22 lines (21 loc) · 774 Bytes
/
vite.config.ts
File metadata and controls
22 lines (21 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import react from '@vitejs/plugin-react';
import path from 'path';
import { fileURLToPath } from 'url';
import { defineConfig } from 'vite';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@app': path.resolve(__dirname, 'src/app'),
'@features': path.resolve(__dirname, 'src/features'),
'@entities': path.resolve(__dirname, 'src/entities'),
'@pages': path.resolve(__dirname, 'src/pages'),
'@shared': path.resolve(__dirname, 'src/shared'),
'@widgets': path.resolve(__dirname, 'src/widgets'),
'@tabler/icons-react': '@tabler/icons-react/dist/esm/icons/index.mjs',
},
},
});