-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.dumirc.ts
55 lines (53 loc) · 1.16 KB
/
.dumirc.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
45
46
47
48
49
50
51
52
53
54
55
import { defineConfig } from 'dumi';
const base = process.env.NODE_ENV === 'production' ? '/fireformily/' : '/';
export default defineConfig({
themeConfig: {
name: 'fireformily',
logo: base + 'images/fireformily.svg',
// nav: [
// {
// title: 'formily',
// link: 'https://github.com/alibaba/formily',
// }]
},
mfsu: {},
apiParser: {},
favicons: [base + 'images/fireformily.svg'],
outputPath: './doc-site',
publicPath: base,
base,
resolve: {
entryFile: "./src/index.ts",
atomDirs: [
{type: 'components', dir: 'src/components'},
{type: 'components', dir: 'src/pro'},
]
},
extraBabelPlugins: [
'./babel/plugin-jsx-wrapper-with-observer-by-attr',
],
alias: {
"@": './src/',
},
links: [
{
rel: 'stylesheet',
href: 'https://unpkg.com/antd@4/dist/antd.min.css',
},
],
styles: [
`
.dumi-default-header-left {
width: 200px !important;
}
.dumi-default-logo {
font-size: 16px !important;
}
.dumi-default-logo img{
height: 48px !important;
width: 100px !important;
}
`,
],
// more config: https://d.umijs.org/config
});