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"