-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
42 lines (39 loc) · 1.19 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* eslint-disable import/no-extraneous-dependencies */
import { defineConfig } from 'vite';
import { visualizer } from 'rollup-plugin-visualizer';
import reactRefresh from '@vitejs/plugin-react-swc';
import yaml from '@rollup/plugin-yaml';
// eslint-disable-next-line import/extensions
import packageJson from './package.json';
// https://vitejs.dev/config/
export default defineConfig({
base: './',
define: {
APP_VERSION: JSON.stringify(packageJson.version),
},
plugins: [reactRefresh(), yaml(), visualizer()],
resolve: {
alias: {
'@plugins/': '/src/plugins/',
'@utils/': '/src/utils/',
'@hooks/': '/src/hooks/',
'@components/': '/src/components/',
'@mui/base': '@mui/base/modern',
'@mui/lab': '@mui/lab/modern',
'@mui/material': '@mui/material/modern',
'@mui/styled-engine': '@mui/styled-engine/modern',
'@mui/system': '@mui/system/modern',
'@mui/utils': '@mui/utils/modern',
},
},
build: {
target: 'esnext',
outDir: 'build',
},
server: {
port: 3000,
fs: {
strict: false,
},
},
});