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

官方文档移除其他语言 md 文档,仅保留中文文档 #408

Closed
qiqingfu opened this issue Nov 24, 2020 · 1 comment · Fixed by #410
Closed

官方文档移除其他语言 md 文档,仅保留中文文档 #408

qiqingfu opened this issue Nov 24, 2020 · 1 comment · Fixed by #410

Comments

@qiqingfu
Copy link
Contributor

qiqingfu commented Nov 24, 2020

需求目标:
给文档官网作减法,保留其最核心的功能,在构建过程中减少打包资源的体积,加快编译速度。

当前项目:

  1. 打包时会在 examples/pages/ 目录下生成多语言的 Element3 官网文件
  2. examples/docs 目录下存在多语言组件 *.md 文档
  3. 多语言路由 routes
  4. 多语言切换

期望项目:

  1. 打包时在 examples/pages/ 目录下仅生成 zh-CN 官网文件
  2. 移除 examples/docs 下非 zh-CN 的 *.md 文档
  3. 只生成 zh-CN routes
  4. 移除多语言切换

项目体积及构建速度:

  • 包体积:
    before:47.6 MB,300+ 文件
    after:24.6MB,90+ 文件

  • 速度:
    before:大概为 30384ms
    after:大概为 16010ms

@cuixiaorui
Copy link
Contributor

good job

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants