-
Notifications
You must be signed in to change notification settings - Fork 0
/
.umirc.ts
39 lines (37 loc) · 1.09 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
import { defineConfig } from 'dumi';
const repo = 'schiff';
export default defineConfig({
title: repo,
favicon:
'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png',
logo:
'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png',
outputPath: 'docs-dist',
mode: 'site',
hash: true,
resolve: {
includes: ['docs', 'packages/h5/src'],
},
postcssLoader: {},
// Because of using GitHub Pages
base: `/${repo}/`,
publicPath: `/${repo}/`,
navs: [
null,
{
title: 'GitHub',
path: 'https://github.com/umijs/dumi-template',
},
],
themeConfig: {
hd: {
// 根据不同的设备屏幕宽度断点切换高清方案
rules: [
{ maxWidth: 375, mode: 'vw', options: [100, 750] },
{ minWidth: 376, maxWidth: 750, mode: 'vw', options: [100, 1500] },
],
// 更多 rule 配置访问 https://github.com/umijs/dumi/blob/master/packages/theme-mobile/src/typings/config.d.ts#L7
},
},
// more config: https://d.umijs.org/config
});