-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.dumirc.js
46 lines (44 loc) · 1.13 KB
/
.dumirc.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
import { defineConfig } from 'dumi'
import { readFileSync } from 'fs'
import { resolve } from 'path'
const isDevelopment = process.env.NODE_ENV === 'development'
export default defineConfig({
publicPath: isDevelopment ? '/' : 'https://shuoshubao.github.io/components/',
resolve: {
docDirs: ['docs-md']
},
outputPath: 'docs',
history: {
type: 'hash'
},
polyfill: false,
targets: {
chrome: 100
},
externals: {},
favicons: ['https://gw.alipayobjects.com/zos/rmsportal/rlpTLlbMzTNYuZGGCVYM.png'],
themeConfig: {
name: '组件库',
logo: 'https://gw.alipayobjects.com/zos/rmsportal/rlpTLlbMzTNYuZGGCVYM.png',
prefersColor: {
switch: false,
default: 'light'
},
footer: false,
nav: [
{
title: '组件',
link: '/components/Table'
},
{
title: '介绍',
link: '/instructions'
}
]
},
alias: {
'@nbfe/components': resolve(__dirname, './dist/index.esm.js')
},
styles: ['https://registry.npmmirror.com/antd/4.24.4/files/dist/antd.min.css', readFileSync(resolve(__dirname, './src/dumi.css')).toString()],
headScripts: []
})