minify output html,css,svg

This commit is contained in:
Alexander 2025-06-23 16:10:13 -04:00
parent 6eeb91a93d
commit 5f19e1759c

View file

@ -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"