From d104f01ee8f0a59561922af2fb5529569edb9df9 Mon Sep 17 00:00:00 2001 From: KingKDot Date: Sat, 25 Apr 2026 21:12:16 -0500 Subject: [PATCH] remove minification for now --- Dockerfile | 5 +---- Overlord-Server/package.json | 6 +++--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0817d0f..4a4231a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -115,13 +115,10 @@ RUN mkdir -p certs public data RUN bun run build:css && bun run vendor \ && test -s ./public/assets/tailwind.css && test -d ./public/vendor/fontawesome -# Minify public JS, CSS, and HTML assets -RUN bun run minify - # Compile a standalone production binary (sharp is external — kept in node_modules) RUN BUN_TARGET="bun-linux-x64" \ && if [ "${TARGETARCH}" = "arm64" ]; then BUN_TARGET="bun-linux-arm64"; fi \ - && bun build --production --minify --external sharp src/index.ts \ + && bun build --production --external sharp src/index.ts \ --compile --target "$BUN_TARGET" --outfile overlord-server # Expose the default port diff --git a/Overlord-Server/package.json b/Overlord-Server/package.json index 668eeb6..6cf44b3 100644 --- a/Overlord-Server/package.json +++ b/Overlord-Server/package.json @@ -6,10 +6,10 @@ "scripts": { "dev": "bun --watch src/index.ts", "start": "bun run build:css && bun run vendor && bun run src/index.ts", - "build": "bun run build:css && bun run vendor && bun build --production --minify --external sharp src/index.ts --target bun --outdir dist", + "build": "bun run build:css && bun run vendor && bun build --production --external sharp src/index.ts --target bun --outdir dist", "vendor": "bun run scripts/vendor.ts", - "build:prod:win": "bun build --production --minify --external sharp src/index.ts --compile --target bun-windows-x64 --outfile dist/overlord-server.exe", - "build:prod:linux": "bun build --production --minify --external sharp src/index.ts --compile --target bun-linux-x64 --outfile dist/overlord-server-linux-x64", + "build:prod:win": "bun build --production --external sharp src/index.ts --compile --target bun-windows-x64 --outfile dist/overlord-server.exe", + "build:prod:linux": "bun build --production --external sharp src/index.ts --compile --target bun-linux-x64 --outfile dist/overlord-server-linux-x64", "build:css": "tailwindcss -i ./src/styles.css -o ./public/assets/tailwind.css --minify", "watch:css": "tailwindcss -i ./src/styles.css -o ./public/assets/tailwind.css --watch", "minify": "bun run scripts/minify-public.ts"