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: {