Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Sep 12, 2022
1 parent 1922cbd commit baa14de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/config/app-configs.md
Expand Up @@ -259,7 +259,7 @@ VitePress build hooks allow you to add new functionality and behaviors to your w

- Type: `(ctx: TransformContext) => Awaitable<HeadConfig[]>`

`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 extra entries, they will be merged automatically with the existing ones.

::: warning
Don't mutate anything inside the `ctx`.
Expand Down Expand Up @@ -288,7 +288,7 @@ interface TransformContext {

- Type: `(code: string, id: string, ctx: TransformContext) => Awaitable<string | void>`

`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.
Expand Down

0 comments on commit baa14de

Please sign in to comment.