diff --git a/guide/api-plugin.md b/guide/api-plugin.md index ab102d2f..b3e84930 100644 --- a/guide/api-plugin.md +++ b/guide/api-plugin.md @@ -387,7 +387,10 @@ Vite 插件也可以提供钩子来服务于特定的 Vite 目标。这些钩子 interface HtmlTagDescriptor { tag: string - attrs?: Record + /** + * 如果需要,属性值将自动转义。 + */ + attrs?: Record children?: string | HtmlTagDescriptor[] /** * 默认: 'head-prepend'