-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
24 lines (22 loc) · 971 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 react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
import * as path from 'path';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src/'),
'@assets': `${path.resolve(__dirname, './src/assets/')}`,
'@fonts': `${path.resolve(__dirname, './src/assets/fonts/')}`,
'@img': path.resolve(__dirname, './src/assets/img'),
'@styles': `${path.resolve(__dirname, './src/assets/styles')}`,
'@common': `${path.resolve(__dirname, './src/common')}`,
'@components': `${path.resolve(__dirname, './src/common/components')}`,
'@constants': `${path.resolve(__dirname, './src/common/constants')}`,
'@helpers': `${path.resolve(__dirname, './src/common/helpers')}`,
'@interfaces': `${path.resolve(__dirname, './src/common/interfaces')}`,
'@pages': `${path.resolve(__dirname, './src/pages')}`,
},
},
});