fix minifying and reuse code
This commit is contained in:
+5
-3
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user