From a976e4babdd5c1fb4df59144b3188ffd58f549ad Mon Sep 17 00:00:00 2001 From: misitebao Date: Wed, 23 Mar 2022 07:16:23 +0800 Subject: [PATCH] docs: add document description Added parameter description for `injectTo` parameter and added reference link This resolve #52 --- README.md | 2 ++ README.zh_CN.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 7b8f43d..2ed7914 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,8 @@ export default defineConfig({ }, tags: [ { + // The value of injectTo is: 'head' | 'body' | 'head-prepend' | 'body-prepend' + // Please reference to https://vitejs.dev/guide/api-plugin.html#transformindexhtml injectTo: 'body-prepend', tag: 'div', attrs: { diff --git a/README.zh_CN.md b/README.zh_CN.md index fde5518..55f6f2a 100644 --- a/README.zh_CN.md +++ b/README.zh_CN.md @@ -76,6 +76,8 @@ export default defineConfig({ }, tags: [ { + // injectTo 的值为:'head' | 'body' | 'head-prepend' | 'body-prepend' + // 请参考 https://vitejs.dev/guide/api-plugin.html#transformindexhtml injectTo: 'body-prepend', tag: 'div', attrs: {