-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvite.config.ts
More file actions
26 lines (25 loc) · 826 Bytes
/
vite.config.ts
File metadata and controls
26 lines (25 loc) · 826 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
25
26
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import path from 'path';
import tailwindcss from 'tailwindcss';
export default defineConfig({
plugins: [react()],
css: {
postcss: {
plugins: [tailwindcss()],
},
},
resolve: {
alias: {
'@components': path.resolve(__dirname, 'src/components'),
'@features': path.resolve(__dirname, 'src/features'),
'@stores': path.resolve(__dirname, 'src/stores'),
'@hooks': path.resolve(__dirname, 'src/hooks'),
'@services': path.resolve(__dirname, 'src/services'),
'@utils': path.resolve(__dirname, 'src/utils'),
'@constants': path.resolve(__dirname, 'src/constants'),
'@mocks': path.resolve(__dirname, 'src/mocks'),
'@typings': path.resolve(__dirname, 'src/types'),
},
},
});