Skip to content

Commit

Permalink
docs: add dumi mako config
Browse files Browse the repository at this point in the history
  • Loading branch information
yvonneyx committed Dec 12, 2024
1 parent 26b7295 commit 1022caa
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mako.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"optimization": {
"skipModules": false,
"concatenateModules": false
},
"moduleIdStrategy": "hashed",
"experimental": {
"magicComment": true
}
}
11 changes: 11 additions & 0 deletions site/.dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ export default defineConfig({
{ id: 'zh', name: '中文' },
{ id: 'en', name: 'English' },
],
title: 'Ant Design Charts', // 网站header标题
favicons: ['https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*7svFR6wkPMoAAAAAAAAAAAAADmJ7AQ/original'], // 网站 favicon
metas: [
// 自定义 meta 标签
{ name: 'keywords', content: 'Ant Design Charts' },
{
name: 'description',
content: 'AntV react component library',
},
],
themeConfig: {
title: 'Ant Design Charts',
description: 'AntV react component library',
Expand Down Expand Up @@ -293,6 +303,7 @@ export default defineConfig({
},
mfsu: false,
mako: {},
jsMinifier: 'terser',
alias: {
// 根据自己项目结构书写绝对路径
'@': __dirname,
Expand Down

0 comments on commit 1022caa

Please sign in to comment.