From 1022caa6d4e310f207122de418585cdaafbc5a1b Mon Sep 17 00:00:00 2001 From: yvonneyx Date: Thu, 12 Dec 2024 15:25:51 +0800 Subject: [PATCH] docs: add dumi mako config --- mako.config.json | 10 ++++++++++ site/.dumirc.ts | 11 +++++++++++ 2 files changed, 21 insertions(+) create mode 100644 mako.config.json diff --git a/mako.config.json b/mako.config.json new file mode 100644 index 000000000..c9c854339 --- /dev/null +++ b/mako.config.json @@ -0,0 +1,10 @@ +{ + "optimization": { + "skipModules": false, + "concatenateModules": false + }, + "moduleIdStrategy": "hashed", + "experimental": { + "magicComment": true + } +} diff --git a/site/.dumirc.ts b/site/.dumirc.ts index 4b93a9b61..e355888a4 100644 --- a/site/.dumirc.ts +++ b/site/.dumirc.ts @@ -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', @@ -293,6 +303,7 @@ export default defineConfig({ }, mfsu: false, mako: {}, + jsMinifier: 'terser', alias: { // 根据自己项目结构书写绝对路径 '@': __dirname,