shareon-pulsanti-condivisio.../vite.config.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
446 B
JavaScript
Raw Normal View History

2022-02-10 21:26:11 +01:00
import { defineConfig } from "vite";
2022-02-10 22:21:09 +01:00
import * as path from "node:path";
import package_ from "./package.json";
2022-02-10 21:26:11 +01:00
export default defineConfig({
build: {
sourcemap: true,
target: "esnext",
lib: {
entry: path.resolve("./src/index.js"),
name: "Shareon",
formats: ["es", "umd", "iife"],
},
2022-02-10 21:44:35 +01:00
rollupOptions: {
output: {
banner: `/*! ${package_.name} v${package_.version} */`,
2022-02-10 21:44:35 +01:00
},
},
2022-02-10 21:26:11 +01:00
},
});