-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.umirc.ts
48 lines (46 loc) · 1.08 KB
/
.umirc.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
43
44
45
46
47
48
import { IConfig } from 'umi-types';
// ref: https://umijs.org/config/
const config: IConfig = {
treeShaking: true,
plugins: [
[
'umi-plugin-react',
{
dva: {
immer: false,
},
antd: true,
routes: {
exclude: [
/model\.(j|t)sx?$/,
/service\.(j|t)sx?$/,
/models\//,
/components\//,
/services\//,
/helpers\//,
/types\//,
],
},
library: 'react',
dynamicImport: {
webpackChunkName: true,
level: 2,
},
locale: {
default: 'zh-CN', //默认语言 zh-CN
baseNavigator: true, // 为true时,用navigator.language的值作为默认语言
antd: true, // 是否启用antd的<LocaleProvider />
},
title: {
defaultTitle: 'Test-react-app-with-jest-and-enzyme',
useLocale: true,
},
hardSource: false,
pwa: false,
hd: false,
fastClick: false,
},
],
],
};
export default config;