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

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

19 lines
343 B
JavaScript
Raw Normal View History

2022-02-10 21:26:11 +01:00
import { defineConfig } from "vite";
import * as path from "path";
export default defineConfig({
esbuild: {
minify: true,
},
build: {
sourcemap: true,
target: "esnext",
minify: "terser",
lib: {
entry: path.resolve("./src/index.js"),
name: "Shareon",
formats: ["es", "umd", "iife"],
},
},
});