🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

vite-plugin-license

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-license

Vite plugin to add license banner to bundled output. Tiny wrapper for rollup-plugin-license.

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

vite-plugin-license

npm version License: MIT CI

Vite plugin to add license banner to bundled output.

This is a tiny wrapper for rollup-plugin-license to solve some problem in using with Vite.

Usage

// vite.config.ts
import path from "node:path";

import { defineConfig } from "vite";
import license from "vite-plugin-license";

const config = defineConfig({
  plugins: [
    license({
      banner: {
        commentStyle: "regular",
        content: {
          file: path.join(__dirname, "LICENSE"),
        },
      },
    }),
  ],
});
export default config;

See rollup-plugin-license for more details.

License

MIT

Keywords

vite-plugin

FAQs

Package last updated on 08 Nov 2025

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