Add banner options from Rollup config
parent
4b13754597
commit
f6d5e43bcb
|
@ -1,5 +1,6 @@
|
|||
import { defineConfig } from "vite";
|
||||
import * as path from "path";
|
||||
import pkg from "./package.json";
|
||||
|
||||
export default defineConfig({
|
||||
esbuild: {
|
||||
|
@ -14,5 +15,10 @@ export default defineConfig({
|
|||
name: "Shareon",
|
||||
formats: ["es", "umd", "iife"],
|
||||
},
|
||||
rollupOptions: {
|
||||
output: {
|
||||
banner: `/*! ${pkg.name} v${pkg.version} */`,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue