-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathvite.config.mjs
More file actions
22 lines (21 loc) · 822 Bytes
/
vite.config.mjs
File metadata and controls
22 lines (21 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import {defineConfig} from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: [
{ find: '@app', replacement: '/app' },
{ find: '@actions', replacement: '/app/actions' },
{ find: '@components', replacement: '/app/components' },
{ find: '@containers', replacement: '/app/containers' },
{ find: '@hooks', replacement: '/app/hooks' },
{ find: '@images', replacement: '/app/images' },
{ find: '@reducers', replacement: '/app/reducers' },
{ find: '@selectors', replacement: '/app/selectors' },
{ find: '@services', replacement: '/app/services' },
{ find: '@styles', replacement: '/app/styles' },
{ find: '@utils', replacement: '/app/utils' },
],
},
})