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, diff --git a/site/package.json b/site/package.json index 5948db62e..df9dff40b 100644 --- a/site/package.json +++ b/site/package.json @@ -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", @@ -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"