-
Notifications
You must be signed in to change notification settings - Fork 843
/
.umirc.js
48 lines (46 loc) · 1.23 KB
/
.umirc.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
47
48
// import { readdirSync } from 'fs';
// import { join } from 'path';
import { defineConfig } from 'dumi';
// const headPkgList = [];
// // utils must build before core
// // runtime must build before renderer-react
// const pkgList = readdirSync(join(__dirname, 'packages')).filter(
// (pkg) => pkg.charAt(0) !== '.' && !headPkgList.includes(pkg),
// );
// const alias = pkgList.reduce((pre, pkg) => {
// pre[`@alipay/${pkg}`] = join(__dirname, 'packages', pkg, 'src');
// return {
// ...pre,
// };
// }, {});
export default defineConfig({
title: 'pīnyīn',
favicon:
'https://gw.alipayobjects.com/mdn/rms_f6322a/afts/img/A*VqPXS4ODZTMAAAAAAAAAAAAAARQnAQ',
logo:
'https://gw.alipayobjects.com/mdn/rms_f6322a/afts/img/A*bGz9QbNudekAAAAAAAAAAAAAARQnAQ',
outputPath: 'docs-dist/dist',
mode: 'doc',
exportStatic: {},
hash: true,
resolve: {
includes: ['.'],
},
locales: [
['zh-CN', '中文'],
['en-US', 'English'],
],
// Because of using GitHub Pages
base: '/',
publicPath: '/',
// alias,
mfsu: {
ignoreNodeBuiltInModules: true,
},
nodeModulesTransform: {
type: 'all',
exclude: ['nodejieba', '@node-rs/jieba'],
},
webpack5: {},
// more config: https://d.umijs.org/config
});