perf: enable Docusaurus Faster (Rspack + SWC + Lightning CSS + SSG )#106
Open
xingwangzhe wants to merge 2 commits into
Open
perf: enable Docusaurus Faster (Rspack + SWC + Lightning CSS + SSG )#106xingwangzhe wants to merge 2 commits into
xingwangzhe wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Enables Docusaurus “Faster” build pipeline settings for the Docs site to improve build performance and modernize the toolchain configuration.
Changes:
- Add
@docusaurus/fastertoDocsdevDependencies. - Configure
future.v4andfuture.fasteroptions indocusaurus.config.js.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| Docs/package.json | Adds the @docusaurus/faster dev dependency needed for the new build pipeline. |
| Docs/docusaurus.config.js | Enables Docusaurus Faster options (Rspack/SWC/Lightning CSS/SSG threads) under future. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…reads) - Add @docusaurus/faster dependency for Rust-based Rspack bundler - Enable swcJsLoader, swcJsMinimizer, lightningCssMinimizer - Enable rspackBundler (Rspack replaces Webpack) - Enable mdxCrossCompilerCache (compile MDX once for both envs) - Enable ssgWorkerThreads (multi-core page rendering) - Skip swcHtmlMinimizer due to self-closing tag warnings in content Signed-off-by: 王兴家 <xingwangzhe@outlook.com>
009a81c to
043e251
Compare
Signed-off-by: 王兴家 <xingwangzhe@outlook.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
提高文档构建速度
本地构建
机器
本地构建时间
1min左右,极大加快构建速度