Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vite-plugin-inject-html

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-inject-html

[![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)

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
17
increased by6.25%
Maintainers
1
Weekly downloads
 
Created
Source

vite-plugin-inject-html

npm package node compatibility

Detailed Documentation

For fully typed and detailed documentation, please visit here.

Install

Required version:

  • Node.js >= 14.18.0
  • Vite >= 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 url
  • title - title
  • metas - <meta> tags
  • links - <link> tags
  • externalStyleSheets - external style sheet urls
  • scripts - <script> tags
  • noscripts - <noscript> tags
  • otherTags - other tags or customizing injectTo

Keywords

FAQs

Package last updated on 14 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc