Skip to content

d2m#1476

Merged
thinkasany merged 6 commits into
mainfrom
dev
Dec 9, 2025
Merged

d2m#1476
thinkasany merged 6 commits into
mainfrom
dev

Conversation

@thinkasany

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings December 9, 2025 12:15
@vercel

vercel Bot commented Dec 9, 2025

Copy link
Copy Markdown

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

Project Deployment Preview Comments Updated (UTC)
cn-vitejs-dev Building Building Preview Comment Dec 9, 2025 0:15am

@thinkasany thinkasany merged commit d5f466b into main Dec 9, 2025
4 of 5 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

This PR fixes documentation inconsistencies in the Vite 8 migration guide, specifically correcting a package.json field name and updating anchor links to match the current documentation structure.

  • Corrects "dependencies" to "devDependencies" in the migration example code block
  • Updates anchor links from the old format to include the "build-" prefix for consistency

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

Comment thread guide/migration.md
### 使用 Lightning CSS 进行 CSS 压缩 {#css-minification-by-lightning-css}

现在默认使用 [Lightning CSS](https://lightningcss.dev/) 进行 CSS 压缩。你可以使用 [`build.cssMinify: 'esbuild'`](/config/build-options#cssminify) 选项切换回 esbuild。请注意,你需要将 `esbuild` 安装为 `devDependency`。
现在默认使用 [Lightning CSS](https://lightningcss.dev/) 进行 CSS 压缩。你可以使用 [`build.cssMinify: 'esbuild'`](/config/build-options#build-minify) 选项切换回 esbuild。请注意,你需要将 `esbuild` 安装为 `devDependency`。

Copilot AI Dec 9, 2025

Copy link

Choose a reason for hiding this comment

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

The anchor link is incorrect. The text references build.cssMinify: 'esbuild' but the link points to #build-minify (which is for the build.minify option). It should point to #build-cssminify instead.

Change /config/build-options#build-minify to /config/build-options#build-cssminify.

Suggested change
现在默认使用 [Lightning CSS](https://lightningcss.dev/) 进行 CSS 压缩。你可以使用 [`build.cssMinify: 'esbuild'`](/config/build-options#build-minify) 选项切换回 esbuild。请注意,你需要将 `esbuild` 安装为 `devDependency`
现在默认使用 [Lightning CSS](https://lightningcss.dev/) 进行 CSS 压缩。你可以使用 [`build.cssMinify: 'esbuild'`](/config/build-options#build-cssminify) 选项切换回 esbuild。请注意,你需要将 `esbuild` 安装为 `devDependency`

Copilot uses AI. Check for mistakes.
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.

5 participants