Add banner options from Rollup config

pull/45/head
Nikita Karamov 2022-02-10 21:44:35 +01:00
parent 4b13754597
commit f6d5e43bcb
No known key found for this signature in database
GPG Key ID: 3C8E688C96EEB9C9
1 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,6 @@
import { defineConfig } from "vite"; import { defineConfig } from "vite";
import * as path from "path"; import * as path from "path";
import pkg from "./package.json";
export default defineConfig({ export default defineConfig({
esbuild: { esbuild: {
@ -14,5 +15,10 @@ export default defineConfig({
name: "Shareon", name: "Shareon",
formats: ["es", "umd", "iife"], formats: ["es", "umd", "iife"],
}, },
rollupOptions: {
output: {
banner: `/*! ${pkg.name} v${pkg.version} */`,
},
},
}, },
}); });