-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
39 lines (38 loc) · 867 Bytes
/
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
import { defineConfig } from 'vite';
import reactRefresh from '@vitejs/plugin-react-refresh';
import { md } from './plugins/md';
const reactSvgPlugin = require('./plugins/svg');
// https://vitejs.dev/config/
export default defineConfig({
plugins: [md(), reactRefresh(), reactSvgPlugin({ defaultExport: 'component' })],
define: {
'process.env': {},
},
resolve: {
alias: [
{
find: '@',
replacement: '/src',
},
],
},
build: {
chunkSizeWarningLimit: 601,
},
server: {
proxy: {},
},
css: {
preprocessorOptions: {
less: {
additionalData: `@import "/src/global.variable.less";`,
javascriptEnabled: true,
modifyVars: {
'primary-color': '#1d1fa4',
'primary-background': '#F0ECF9',
'font-size-base': '12px',
},
},
},
},
});