Skip to content

Commit 98efe49

Browse files
authored
Merge pull request #1406 from vitejs/sync-08e5e0f1-1
docs(en): merge docs-cn/sync-docs into docs-cn/dev @ 08e5e0f
2 parents 550b870 + 19ad85a commit 98efe49

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

guide/api-plugin.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,10 @@ Vite 插件也可以提供钩子来服务于特定的 Vite 目标。这些钩子
387387

388388
interface HtmlTagDescriptor {
389389
tag: string
390-
attrs?: Record<string, string>
390+
/**
391+
* 如果需要,属性值将自动转义。
392+
*/
393+
attrs?: Record<string, string | boolean>
391394
children?: string | HtmlTagDescriptor[]
392395
/**
393396
* 默认: 'head-prepend'

0 commit comments

Comments
 (0)