vite-plugin-license
v0.0.2
Published
Vite plugin to add license banner to bundled output. Tiny wrapper for rollup-plugin-license.
Downloads
10,831
Maintainers
Readme
vite-plugin-license
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.
