diff --git a/docs/config/app-configs.md b/docs/config/app-configs.md index 7d1a9aad175e..0bf3e2bb66c3 100644 --- a/docs/config/app-configs.md +++ b/docs/config/app-configs.md @@ -259,7 +259,7 @@ VitePress build hooks allow you to add new functionality and behaviors to your w - Type: `(ctx: TransformContext) => Awaitable` -`transformHead` is a build hook to transform the head before generating each page. It will allow you to add head entries that cannot be statically added to your VitePress config. You need to return only extra entries, they will be merged with existing entries. +`transformHead` is a build hook to transform the head before generating each page. It will allow you to add head entries that cannot be statically added to your VitePress config. You only need to return the extra entries, they will be merged automatically with the existing ones. ::: warning Don't mutate anything inside the `ctx`. @@ -288,7 +288,7 @@ interface TransformContext { - Type: `(code: string, id: string, ctx: TransformContext) => Awaitable` -`transformHtml` is a build hook to transform the content of each page before saving to disk (SSG). +`transformHtml` is a build hook to transform the content of each page before saving to disk. ::: warning Modifying the html content may cause hydration problems in runtime.