Add vite as devDependency
This commit is contained in:
parent
6816879bbc
commit
77123986bf
|
@ -60,7 +60,8 @@
|
|||
"rollup": "^2.67.0",
|
||||
"rollup-plugin-postcss": "^4.0.2",
|
||||
"rollup-plugin-terser": "^7.0.2",
|
||||
"size-limit": "^7.0.5"
|
||||
"size-limit": "^7.0.5",
|
||||
"vite": "^2.8.0"
|
||||
},
|
||||
"size-limit": [
|
||||
{
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
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"],
|
||||
},
|
||||
},
|
||||
});
|
Loading…
Reference in New Issue