File tree Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 4
4
可以在 [ 环境 API 讨论] ( https://github.com/vitejs/vite/discussions/16358 ) 中向我们提供反馈
5
5
:::
6
6
7
- 查看 [ 构建过程中的共享插件] ( /guide/api-environment.md#shared-plugins-during-build ) .
7
+ 查看 [ 构建过程中的共享插件] ( /guide/api-environment-plugins .md#shared-plugins-during-build ) .
8
8
9
9
影响范围:` Vite 插件作者 `
10
10
Original file line number Diff line number Diff line change @@ -348,10 +348,6 @@ npm add -D lightningcss
348
348
349
349
默认情况下,Vite 使用 esbuild 来压缩 CSS。通过 [ ` build.cssMinify: 'lightningcss' ` ] ( ../config/build-options.md#build-cssminify ) 进行配置,也可以将 Lightning CSS 用作 CSS 最小化压缩。
350
350
351
- ::: tip NOTE
352
- 在使用 Lightning CSS 时,不支持 [ CSS 预处理器] ( #css-pre-processors ) 。
353
- :::
354
-
355
351
## 静态资源处理 {#static-assets}
356
352
357
353
导入一个静态资源会返回解析后的 URL:
Original file line number Diff line number Diff line change 1
1
# temporary, we'll flip this around some day
2
2
https://cn.vitejs.dev/* https://cn.vite.dev/:splat 301 !
3
3
4
- /guide/api-vite-runtime /guide/api-environment 302
5
- /guide/api-vite-runtime.html /guide/api-environment 302
6
- /guide/api-vite-environment /guide/api-environment 302
7
- /guide/api-vite-environment.html /guide/api-environment 302
8
- /guide/comparisons /guide/why#how-vite-relates-to-other-unbundled-build-tools 302
9
- /guide/comparisons.html /guide/why#how-vite-relates-to-other-unbundled-build-tools 302
4
+ /guide/api-vite-runtime /guide/api-environment 301
5
+ /guide/api-vite-runtime.html /guide/api-environment 301
6
+ /guide/api-vite-environment /guide/api-environment 301
7
+ /guide/api-vite-environment.html /guide/api-environment 301
8
+ /guide/comparisons /guide/why#how-vite-relates-to-other-unbundled-build-tools 301
9
+ /guide/comparisons.html /guide/why#how-vite-relates-to-other-unbundled-build-tools 301
You can’t perform that action at this time.
0 commit comments