Skip to content

m2d - #1644

Merged
thinkasany merged 6 commits into
devfrom
main
Jun 14, 2026
Merged

m2d#1644
thinkasany merged 6 commits into
devfrom
main

Conversation

@thinkasany

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings June 14, 2026 07:31
@vercel

vercel Bot commented Jun 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cn-vitejs-dev Ready Ready Preview, Comment Jun 14, 2026 7:32am

Request Review

@thinkasany
thinkasany merged commit 23a7efb into dev Jun 14, 2026
3 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Chinese documentation to reflect the expanded --configLoader CLI option set and to improve consistency/clarity in wording and punctuation across the guides.

Changes:

  • Document native (experimental) as an additional --configLoader option in the CLI guide.
  • Fix Chinese punctuation in the public base path section of the build guide.
  • Localize a related-link label in the JavaScript API guide from English to Chinese.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
guide/cli.md Updates the --configLoader option description to include native (experimental) loading.
guide/build.md Adjusts punctuation in the base path documentation (with a minor terminology consistency note).
guide/api-javascript.md Localizes “.env Files” link text to “.env 文件”.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread guide/build.md
由 JS 引入的资源 URL,CSS 中的 `url()` 引用以及 `.html` 文件中引用的资源在构建过程中都会自动调整,以适配此选项。

当然,情况也有例外,当访问过程中需要使用动态连接的 url 时,可以使用全局注入的 `import.meta.env.BASE_URL` 变量,它的值为公共基础路径。注意,这个变量在构建时会被静态替换,因此,它必须按 `import.meta.env.BASE_URL` 的原样出现(例如 `import.meta.env['BASE_URL']` 是无效的)
当然,情况也有例外,当访问过程中需要使用动态连接的 url 时,可以使用全局注入的 `import.meta.env.BASE_URL` 变量,它的值为公共基础路径。注意,这个变量在构建时会被静态替换,因此,它必须按 `import.meta.env.BASE_URL` 的原样出现(例如 `import.meta.env['BASE_URL']` 是无效的)
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 this pull request may close these issues.

4 participants