proper minify (thank you claude for making the code)
This commit is contained in:
+2
-5
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user