shareon/vite.config.js

19 lines
343 B
JavaScript
Raw Normal View History

2022-02-10 15:26:11 -05: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"],
},
},
});