proper minify (thank you claude for making the code)

This commit is contained in:
KingKDot
2026-04-19 00:41:56 -05:00
parent ab755a690f
commit 04df67f42e
6 changed files with 160 additions and 14 deletions
+2 -5
View File
@@ -103,11 +103,8 @@ 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 JavaScript assets (mirrors release build step 9)
RUN for f in public/assets/*.js; do \
[ -f "$f" ] || continue; \
bun build --minify --no-bundle --target=browser --outfile "$f" "$f"; \
done
# 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" \