vite-plugin-inject-html
v1.0.5
Published
[![npm package](https://img.shields.io/npm/v/vite-plugin-inject-html.svg)](https://npmjs.com/package/vite-plugin-inject-html) [![node compatibility](https://img.shields.io/node/v/vite-plugin-inject-html.svg)](https://nodejs.org/en/about/releases)
Downloads
78
Readme
vite-plugin-inject-html
Detailed Documentation
For fully typed and detailed documentation, please visit here.
Install
Required version:
Node.js
>= 14.18.0Vite
>= 2.0.0
pnpm add -D vite-plugin-inject-html
Basic usage
// vite.config.ts
import { defineConfig } from 'vite'
import injectHTMLPlugin from 'vite-plugin-inject-html'
export default defineConfig({
plugins: [
injectHTMLPlugin({
// ...options
}),
// ...otherPlugins
]
})
Supported Options
favicon
- favicon urltitle
- titlemetas
-<meta>
tagslinks
-<link>
tagsexternalStyleSheets
- external style sheet urlsscripts
-<script>
tagsnoscripts
-<noscript>
tagsotherTags
- other tags or customizinginjectTo