-
Notifications
You must be signed in to change notification settings - Fork 1
/
vite.config.ts
24 lines (22 loc) · 978 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
import path from 'path'
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
import eslint from 'vite-plugin-eslint'
export default defineConfig({
plugins: [react(), eslint()],
resolve: {
alias: {
'@pages': path.resolve(__dirname, './src/pages'),
'@components': path.resolve(__dirname, './src/components'),
'@features': path.resolve(__dirname, './src/features'),
'@hooks': path.resolve(__dirname, './src/hooks'),
'@constants': path.resolve(__dirname, './src/constants'),
'@methods': path.resolve(__dirname, './src/methods'),
'@assets': path.resolve(__dirname, './src/assets'),
'@context': path.resolve(__dirname, './src/context'),
'@store': path.resolve(__dirname, './src/store'),
'@utils': path.resolve(__dirname, './src/utils'),
'@ui': path.resolve(__dirname, './src/components/ui')
}
}
})