-
Notifications
You must be signed in to change notification settings - Fork 7
/
.umirc.js
45 lines (44 loc) · 928 Bytes
/
.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
// ref: https://umijs.org/config/
export default {
treeShaking: true,
plugins: [
// ref: https://umijs.org/plugin/umi-plugin-react.html
['umi-plugin-react', {
antd: true,
dva: true,
dynamicImport: false,
title: 'WeatherForChrome',
dll: false,
routes: {
exclude: [
/models\//,
/services\//,
/model\.(t|j)sx?$/,
/service\.(t|j)sx?$/,
/components\//,
],
},
}],
],
exportStatic: {
htmlSuffix: true,
dynamicRoot: true,
},
copy: [{
from: 'manifest.json',
to: 'manifest.json',
toType: 'file',
}, {
from: 'src/background.js',
to: 'background.js',
toType: 'file',
}, {
from: 'src/assets/manifest/*',
to: 'static/[name].[ext]',
toType: 'template',
}, {
from: 'src/assets/weather/png/*',
to: 'static/[name].[ext]',
toType: 'template',
}],
};