-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
27 lines (25 loc) · 1.08 KB
/
vite.config.ts
File metadata and controls
27 lines (25 loc) · 1.08 KB
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
27
/* eslint-disable import/no-extraneous-dependencies */
import path from 'node:path';
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
// https://vitejs.dev/config/
export default defineConfig({
resolve: {
alias: {
'@fonts': path.resolve(__dirname, './src/assets/fonts'),
'@images': path.resolve(__dirname, './src/assets/images'),
'@styles': path.resolve(__dirname, './src/assets/styles'),
'@documents': path.resolve(__dirname, './src/assets/documents'),
'@components': path.resolve(__dirname, './src/components'),
'@hooks': path.resolve(__dirname, './src/hooks'),
'@layouts': path.resolve(__dirname, './src/layouts'),
'@pages': path.resolve(__dirname, './src/pages'),
'@store': path.resolve(__dirname, './src/store'),
'@constants': path.resolve(__dirname, './src/constants'),
'@service': path.resolve(__dirname, './src/service'),
'@validations': path.resolve(__dirname, './src/validations'),
},
extensions: ['.js', '.jsx', '.json', '.css', '.ts', '.tsx'],
},
plugins: [react()],
});