-
-
Notifications
You must be signed in to change notification settings - Fork 366
d2m #1476
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
d2m #1476
Conversation
docs(en): merge docs-cn/sync-docs into docs-cn/dev @ 5847249
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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 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.
| ### 使用 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
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.
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.
| 现在默认使用 [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`。 |
No description provided.