-
-
Notifications
You must be signed in to change notification settings - Fork 757
docs: refactor module.rules options into a dedicated page
#12452
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
Conversation
✅ Deploy Preview for rspack ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
module.rules documentation into a dedicated pagemodule.rules options into a dedicated page
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR successfully refactors the module.rules documentation from the main module configuration page into a dedicated page (module-rules.mdx). This improves documentation structure and makes it easier to navigate module rules configuration.
Key Changes
- Created new dedicated pages
website/docs/{zh,en}/config/module-rules.mdxwith comprehensivemodule.rulesdocumentation - Updated
module.mdxfiles to remove themodule.rulescontent and add a reference link to the new page - Updated
_meta.jsonfiles to include the newmodule-rulesentry in navigation - Systematically updated all cross-references throughout the documentation from
Rule.*torules[].*format (e.g.,Rule.type→rules[].type) - Corrected version naming from "Vue3/Vue2" to "Vue 3/Vue 2" for consistency
Reviewed changes
Copilot reviewed 42 out of 44 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| website/docs/zh/config/module-rules.mdx | New Chinese documentation page for module.rules with comprehensive coverage of all rule options |
| website/docs/en/config/module-rules.mdx | New English documentation page for module.rules with comprehensive coverage of all rule options |
| website/docs/zh/config/module.mdx | Removed module.rules section and added reference link to new page |
| website/docs/en/config/module.mdx | Removed module.rules section and added reference link to new page |
| website/docs/{zh,en}/config/_meta.json | Added module-rules entry to navigation structure |
| Various guide and blog files | Updated all references from Rule.* to rules[].* notation and fixed Vue version naming |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
* docs: refactor `module.rules` documentation into a dedicated page * docs: fix
docs: refactor `module.rules` options into a dedicated page (#12452) * docs: refactor `module.rules` documentation into a dedicated page * docs: fix Co-authored-by: neverland <chenjiahan.jait@bytedance.com>
Summary
This PR moves
module.rulesinto its own documentation page to improve structure and readability.The original
modulepage had become too long, making it harder to navigate. By splitting outmodule.rules, the documentation structure is clearer, and the new page provides a more focused introduction, especially helpful for new users.Checklist