Package detail

vite-plugin-license

tasshi-me6.7kMIT0.0.1

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

vite-plugin, vite, typescript, license

readme

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