Skip to content

sync dev into main #1202

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

Merged
merged 6 commits into from
Mar 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion changes/shared-plugins-during-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
可以在 [环境 API 讨论](https://github.com/vitejs/vite/discussions/16358) 中向我们提供反馈
:::

查看 [构建过程中的共享插件](/guide/api-environment.md#shared-plugins-during-build).
查看 [构建过程中的共享插件](/guide/api-environment-plugins.md#shared-plugins-during-build).

影响范围:`Vite 插件作者`

Expand Down
4 changes: 0 additions & 4 deletions guide/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,6 @@ npm add -D lightningcss

默认情况下,Vite 使用 esbuild 来压缩 CSS。通过 [`build.cssMinify: 'lightningcss'`](../config/build-options.md#build-cssminify) 进行配置,也可以将 Lightning CSS 用作 CSS 最小化压缩。

::: tip NOTE
在使用 Lightning CSS 时,不支持 [CSS 预处理器](#css-pre-processors)。
:::

## 静态资源处理 {#static-assets}

导入一个静态资源会返回解析后的 URL:
Expand Down
12 changes: 6 additions & 6 deletions public/_redirects
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# temporary, we'll flip this around some day
https://cn.vitejs.dev/* https://cn.vite.dev/:splat 301!

/guide/api-vite-runtime /guide/api-environment 302
/guide/api-vite-runtime.html /guide/api-environment 302
/guide/api-vite-environment /guide/api-environment 302
/guide/api-vite-environment.html /guide/api-environment 302
/guide/comparisons /guide/why#how-vite-relates-to-other-unbundled-build-tools 302
/guide/comparisons.html /guide/why#how-vite-relates-to-other-unbundled-build-tools 302
/guide/api-vite-runtime /guide/api-environment 301
/guide/api-vite-runtime.html /guide/api-environment 301
/guide/api-vite-environment /guide/api-environment 301
/guide/api-vite-environment.html /guide/api-environment 301
/guide/comparisons /guide/why#how-vite-relates-to-other-unbundled-build-tools 301
/guide/comparisons.html /guide/why#how-vite-relates-to-other-unbundled-build-tools 301