-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.umirc.js
61 lines (61 loc) · 1.26 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
export default {
treeShaking: true,
plugins: [
[
'umi-plugin-react',
{
dva: {
immer: true,
},
antd: true,
routes: {
exclude: [
/components\//,
/hooks\//,
/models\//,
/services\//,
/model\.(t|j)sx?$/,
/service\.(t|j)sx?$/,
],
},
locale: {},
dynamicImport: {
webpackChunkName: true,
},
dll: false,
hardSource: false,
pwa: false,
hd: false,
fastClick: false,
title: 'learn-mapbox',
},
],
],
history: 'hash',
targets: {
ie: 9,
},
chainWebpack: function(config) {
config.module
.rule('workerize')
.test(/\.workerize\.js$/i)
.use('workerize')
.loader('workerize-loader')
.end();
config.output.globalObject('this');
},
theme: {
'@border-radius-base': '2px',
'@table-padding-vertical': '10px',
'@table-padding-horizontal': '12px',
},
define: {
'process.env.MapboxAccessToken': process.env.MapboxAccessToken,
},
extraBabelPlugins: [
[
'import',
{ libraryName: 'react-use', libraryDirectory: 'lib', camel2DashComponentName: false },
],
],
};