fix minifying and reuse code

This commit is contained in:
KingKDot
2026-06-22 19:21:06 -05:00
parent 5f75f5ca6f
commit e2be2b4394
16 changed files with 277 additions and 206 deletions
+5 -3
View File
@@ -109,9 +109,11 @@ RUN if [ -f dist-clients/BackstageCapture.x64.dll ]; then \
echo "WARNING: BackstageCapture DLL not available (build with MSVC on Windows)"; \
fi
# Tailwind CSS, vendored frontend assets, and bundled Bun server runtime.
RUN bun run build \
&& bun run minify \
# Tailwind CSS, vendored frontend assets, minified public assets, and bundled Bun server runtime.
RUN bun run build:public:prod \
&& bun run build:bundle \
&& test "$(wc -l < ./public/index.html)" -lt 20 \
&& test "$(wc -l < ./public/assets/main.js)" -lt 50 \
&& test -s ./public/assets/tailwind.css \
&& test -d ./public/vendor/fontawesome \
&& test -s ./dist/index.js \