File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ document.getElementById('hero-img').src = imgUrl
24
24
25
25
- 引用的资源作为构建资源图的一部分包括在内,将生成散列文件名,并可以由插件进行处理以进行优化。
26
26
27
- - 较小的资源体积小于 [ ` assetsInlineLimit ` 选项值] ( /config/#assetsinlinelimit ) 则会被内联为 base64 data URL。
27
+ - 较小的资源体积小于 [ ` assetsInlineLimit ` 选项值] ( /config/#build- assetsinlinelimit ) 则会被内联为 base64 data URL。
28
28
29
29
### 显式 URL 引入 {#explicit-url-imports}
30
30
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ Pre-bundling them to speed up dev server page load...(将预构建它们以提
40
40
41
41
## 自定义行为 {#customizing-the-behavior}
42
42
43
- 默认的依赖项发现为启发式可能并不总是可取的。在你想要显式地从列表中包含/排除依赖项的情况下, 请使用 [ ` optimizeDeps ` 配置项] ( /config/#dep-optimization-option ) 。
43
+ 默认的依赖项发现为启发式可能并不总是可取的。在你想要显式地从列表中包含/排除依赖项的情况下, 请使用 [ ` optimizeDeps ` 配置项] ( /config/#dep-optimization-options ) 。
44
44
45
45
当你遇到不能直接在源码中发现的 import 时,` optimizeDeps.include ` 或 ` optimizeDeps.exclude ` 就是典型的用例。例如,import 可能是插件转换的结果。这意味着 Vite 无法在初始扫描时发现 import —— 它只能在浏览器请求文件时转换后才能发现。这将导致服务器在启动后立即重新打包。
46
46
You can’t perform that action at this time.
0 commit comments