Skip to content

Commit 158e3e8

Browse files
committed
chore: fix translation for 'serve' at api-plugin.md
1 parent 1c3dd77 commit 158e3e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guide/api-plugin.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ Vite 插件也可以提供钩子来服务于特定的 Vite 目标。这些钩子
402402

403403
## 情景应用 {#conditional-application}
404404

405-
默认情况下插件在部署(serve)和构建(build)模式中都会调用。如果插件只需要在服务或构建期间有条件地应用,请使用 `apply` 属性指明它们仅在 `'build'``'serve'` 模式时调用:
405+
默认情况下插件在预览(serve)和构建(build)模式中都会调用。如果插件只需要在预览或构建期间有条件地应用,请使用 `apply` 属性指明它们仅在 `'build'``'serve'` 模式时调用:
406406

407407
```js
408408
function myPlugin() {

0 commit comments

Comments
 (0)