-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvite.config.js
More file actions
24 lines (24 loc) · 1.07 KB
/
vite.config.js
File metadata and controls
24 lines (24 loc) · 1.07 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
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import svgr from 'vite-plugin-svgr';
export default defineConfig({
plugins: [react(), svgr()],
resolve: {
alias: [
{ find: '@ts', replacement: '/src/ts' },
{ find: '@base', replacement: '/src/base' },
{ find: '@utils', replacement: '/src/utils' },
{ find: '@hooks', replacement: '/src/hooks' },
{ find: '@pages', replacement: '/src/pages' },
{ find: '@router', replacement: '/src/router' },
{ find: '@layout', replacement: '/src/layout' },
{ find: '@common', replacement: '/src/common' },
{ find: '@recoils', replacement: '/src/recoils' },
{ find: '@constants', replacement: '/src/constants' },
{ find: '@controllers', replacement: '/src/controllers' },
{ find: '@components', replacement: '/src/components' },
{ find: '@styles', replacement: '/src/styles' },
{ find: '@assets', replacement: '/src/assets' },
],
},
});