From 5f19e1759c23161325dc624bbee4614383a587a7 Mon Sep 17 00:00:00 2001 From: Alexander Date: Mon, 23 Jun 2025 16:10:13 -0400 Subject: [PATCH] minify output html,css,svg --- build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 80f8ab8..0bcbf29 100755 --- a/build.sh +++ b/build.sh @@ -1,6 +1,6 @@ #! /usr/bin/env nix-shell #! nix-shell --pure -i bash -#! nix-shell --pure -p nodejs_24 bash harfbuzz soupault woff2 jotdown python3 recode nodePackages_latest.katex +#! nix-shell --pure -p nodejs_24 bash harfbuzz soupault woff2 jotdown python3 recode nodePackages_latest.katex minify if ! [[ -d pgvv/ ]]; then python3 -m venv pgvv @@ -59,6 +59,9 @@ for site in acl.cool ytheleus.org; do soup_config rm -rf serve/ soupault + pushd serve/ + find -type f -name '*.html' -o -name '*.css' -o -name '*.svg' | xargs -0 -d\\n -I{} minify -o {} {} + popd NEXT_DIR="serve_$(date +%s)" CUR_DIR=$(find . -maxdepth 1 -type d -regex './serve_[0-9]+') echo "$PREV_DIR"