-
Notifications
You must be signed in to change notification settings - Fork 0
/
.dumirc.ts
58 lines (57 loc) · 1.51 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
56
57
58
import { defineConfig } from 'dumi';
// const logo = require('./images/logo.jpg');
// const ico = require('./images/favicon.ico');
//github仓库名称
// const defaultPath = '/fe-interview';
const defaultPath = '';
//打包后gh-pages默认会拼接仓库名称在路径上
const baseUrl = process.env.NODE_ENV === 'production' ? defaultPath : '';
export default defineConfig({
// base: defaultPath,
base: '/',
// publicPath: `${baseUrl}/`,
resolve: {
docDirs: [
'document',
// 'document1',
],
// atomDirs: [{ type: 'component', dir: '../src/components/' }],
// entryFile: '../src/components/index.ts',
},
// favicons: [
// // 完整地址
// ],
favicons: ['/image/favicon1.ico'],
outputPath: 'docs',
themeConfig: {
// name: '小代笔记',
name: '小慧笔记',
hd: { rules: [] },
rtl: true,
// logo: '/image/logo.jpg',
logo: '/image/logo1.png',
footer: ``,
prefersColor: { default: 'auto' },
socialLinks: {
github: 'https://github.com/dai1254473705/fe-interview',
},
lastUpdated: true,
},
hash: true,
// apiParser: {},
locales: [{ id: 'zh-CN', name: '中文' }],
chainWebpack(memo) {
// memo 当前 webpack-chain 对象
// memo.plugins.delete('copy'); // 会导致访问不到静态文件
},
// extraBabelPlugins: [
// [
// 'babel-plugin-import',
// {
// libraryName: 'antd', //配置antd全局样式
// libraryDirectory: 'es',
// style: true,
// },
// ],
// ],
});