added build script + proper differentiation of dev & prod builds

This commit is contained in:
Simon Martens
2024-12-04 18:56:44 +01:00
parent 3af43b33dd
commit caa5504f2a
11 changed files with 83 additions and 668 deletions

View File

@@ -1,12 +1,9 @@
import { resolve } from "path";
import { defineConfig } from "vite";
export default defineConfig({
mode: "production",
build: {
root: resolve(__dirname, ""),
// These are dev options only:
minify: false,
emitAssets: true,
lib: {
entry: "./transform/main.js",
name: "PC-UI",