From 7ffa9f7689a925e61dc63a153cd64af06dbe79e2 Mon Sep 17 00:00:00 2001 From: Mikey O'Toole Date: Wed, 9 Nov 2022 17:29:53 +0000 Subject: [PATCH] docs: document tag types for insertHtmlContent (#8292) Co-authored-by: Joshua Chen --- website/docs/api/plugin-methods/lifecycle-apis.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/website/docs/api/plugin-methods/lifecycle-apis.md b/website/docs/api/plugin-methods/lifecycle-apis.md index 4e2d788280..322ea9bbf5 100644 --- a/website/docs/api/plugin-methods/lifecycle-apis.md +++ b/website/docs/api/plugin-methods/lifecycle-apis.md @@ -397,6 +397,12 @@ module.exports = function (context, options) { }; ``` +Tags will be added as follows: + +- `headTags` will be inserted before the closing `` tag after scripts added by config. +- `preBodyTags` will be inserted after the opening `` tag before any child elements. +- `postBodyTags` will be inserted before the closing `` tag after all child elements. + ## `getClientModules()` {#getClientModules} Returns an array of paths to the [client modules](../../advanced/client.md#client-modules) that are to be imported into the client bundle.