Skip to content

Commit

Permalink
docs: add dumi mako config (#2805)
Browse files Browse the repository at this point in the history
* docs: add dumi mako config

* chore: deps
  • Loading branch information
yvonneyx authored Dec 12, 2024
1 parent f4e013d commit d1c2370
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 5 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
10 changes: 5 additions & 5 deletions site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,13 @@
"start": "cross-env NODE_OPTIONS=--max_old_space_size=8192 pnpm run develop"
},
"devDependencies": {
"@antv/dumi-theme-antv": "^0.5.3",
"@types/lodash": "^4.17.13",
"@types/react": "^16.14.62",
"@types/react-dom": "^16.9.24",
"@types/react-dom": "^16.9.25",
"@types/styled-components": "^5.1.34",
"cross-env": "^7.0.3",
"d3-interpolate": "^3.0.1",
"d3-regression": "^1.3.10",
"dumi": "^2.4.13",
"fecha": "^4.2.3",
"gh-pages": "^2.2.0",
"typedoc": "^0.17.8",
Expand All @@ -46,10 +44,12 @@
"dependencies": {
"@ant-design/graphs": "workspace:*",
"@ant-design/plots": "workspace:*",
"antd": "^5.22.0",
"@antv/dumi-theme-antv": "^0.5.4",
"antd": "^5.22.4",
"dumi": "^2.4.16",
"insert-css": "^2.0.0",
"lodash": "^4.17.21",
"rc-util": "^5.43.0",
"rc-util": "^5.44.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-components": "^6.1.13"
Expand Down

0 comments on commit d1c2370

Please sign in to comment.