-
Notifications
You must be signed in to change notification settings - Fork 25
/
.umirc.js
45 lines (43 loc) · 1 KB
/
.umirc.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
var fs = require('fs');
const publicUrl = './public';
// ref: https://umijs.org/config/
export default {
base: '/',
publicPath: '/public/',
targets: {
ie: 11,
},
plugins: [
// new InterpolateHtmlPlugin(HtmlWebpackPlugin, {
// PUBLIC_URL: publicUrl,
// // You can pass any key-value pairs, this was just an example.
// // WHATEVER: 42 will replace %WHATEVER% with 42 in index.html.
// }),
// ref: https://umijs.org/plugin/umi-plugin-react.html
[
'umi-plugin-react',
{
antd: true,
dva: true,
dynamicImport: false,
title: 'umitest',
library: 'react',
pwa: false,
hd: false,
dll: false,
routes: {
exclude: [
/models\//,
/services\//,
/components\//,
/constants\//,
/middleware\//,
/utils\//,
],
},
hardSource: false,
},
],
],
browserslist: ['> 1%', 'last 2 versions'],
};