Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add dumi mako config #2805

Merged
merged 2 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading