m2d - #1655
Merged
Merged
Conversation
Merge pull request #1637 from vitejs/main
docs: sync api plugin keywords desc
docs(guide): fix spacing, translation, wording in api-environment.md
docs(guide): fix spacing and wording in api-environment-frameworks.md
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR makes small editorial and formatting improvements across the Vite Chinese documentation for the plugin API and the environment API/framework guide to improve clarity and consistency.
Changes:
- Clarifies
vite-pluginkeyword guidance forpackage.json(keywordsfield specifically). - Fixes multiple spacing/wording issues in the environment API docs for readability/consistency.
- Adjusts wording in the environment frameworks guide (including
builderbehavior description) and improves inline code spacing.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| guide/api-plugin.md | Clarifies plugin naming/keyword guidance and improves list formatting. |
| guide/api-environment.md | Editorial fixes (spacing/wording) to improve readability and consistency. |
| guide/api-environment-frameworks.md | Editorial fixes and wording tweaks around environment framework docs (including build/builder section). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| 在命令行接口中,调用 `vite build` 和 `vite build --ssr` 仍将只构建客户端和仅 ssr 环境以保证向后兼容性。 | ||
|
|
||
| 当 `builder` 选项 为 `undefined` 时(或者调用 `vite build --app`)时,`vite build` 将选择构建整个应用。这将在未来的主要版本中成为默认设置。将创建一个 `ViteBuilder` 实例(构建时等同于 `ViteDevServer`),用于为生产环境构建所有配置的环境。默认情况下,环境的构建按照 `environments` 记录的顺序依次运行。框架或用户可以进一步使用 `builder.buildApp` 选项配置环境的构建方式: | ||
| 当 `builder` 选项不为 `undefined` 时(或者调用 `vite build --app`)时,`vite build` 将选择构建整个应用。这将在未来的主要版本中成为默认设置。将创建一个 `ViteBuilder` 实例(构建时等同于 `ViteDevServer`),用于为生产环境构建所有配置的环境。默认情况下,环境的构建按照 `environments` 记录的顺序依次运行。框架或用户可以进一步使用 `builder.buildApp` 选项配置环境的构建方式: |
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.
No description provided.