Clean and minify

This commit is contained in:
2026-03-26 22:59:21 +01:00
parent 9e59377055
commit 6350509abd
8 changed files with 27 additions and 295 deletions

28
ui/grid/vite.config.js Normal file
View File

@@ -0,0 +1,28 @@
import { defineConfig } from "vite";
import tailwindcss from "@tailwindcss/vite";
import { resolve } from "path";
import path from "node:path";
const __dirname = path.resolve();
export default defineConfig({
plugins: [tailwindcss()],
build: {
lib: {
entry: resolve(__dirname, "./UI/aggrid/grid-lib.js"),
name: "GridBundle",
fileName: "grid",
formats: ["es"],
},
outDir: "./ui/grid/dist",
minify: "terser",
rollupOptions: {
external: ["sigpro"],
output: {
globals: {
sigpro: "$",
},
},
},
},
});