Add banner options from Rollup config
parent
4b13754597
commit
f6d5e43bcb
|
@ -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} */`,
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue