forked from skywalker512/departmental-introduction-2019
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.umirc.ts
44 lines (40 loc) · 882 Bytes
/
.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
import { IConfig } from 'umi-types'
// @ts-ignore
import pxToViewPort from 'postcss-px-to-viewport'
// ref: https://umijs.org/config/
const config: IConfig = {
base: './',
treeShaking: true,
publicPath: './',
history: 'hash',
plugins: [
// ref: https://umijs.org/plugin/umi-plugin-react.html
[
'umi-plugin-react',
{
antd: false,
dva: false,
dynamicImport: false,
title: 'departmental-introduction-2019',
dll: false,
pwa: true,
routes: {
exclude: [/components\//],
},
fastClick: true,
},
],
],
extraPostCSSPlugins: [
pxToViewPort({
viewportWidth: 1280,
viewportHeight: 720,
unitPrecision: 5,
viewportUnit: 'vw',
selectorBlackList: [],
minPixelValue: 1,
mediaQuery: true,
})
],
}
export default config