-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.js
48 lines (45 loc) · 1.01 KB
/
vite.config.js
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import dotenv from 'dotenv';
dotenv.config();
// https://vitejs.dev/config/
export default defineConfig(() => {
return {
server: {
port: 3000,
host: true,
},
plugins: [
react({
jsxImportSource: '@emotion/react',
babel: {
plugins: ['@emotion/babel-plugin'],
},
}),
],
resolve: {
alias: {
modules: '/src/modules',
hooks: '/src/hooks',
pages: '/src/pages',
'@redux': '/src/redux',
shared: '/src/shared',
helpers: '/src/helpers',
context: '/src/context',
services: '/src/services',
'@constants': '/src/constants',
images: '/src/images',
assets: '/src/assets',
components: '/src/components',
},
},
base: '/',
optimizeDeps: {
include: [
'@mui/material/Tooltip',
'@mui/icons-material',
'@emotion/styled',
],
},
};
});