more robust compression

This commit is contained in:
2025-11-26 22:03:53 +02:00
parent ea5a66ac28
commit 317dd32952
2 changed files with 18 additions and 10 deletions

View File

@@ -4,13 +4,4 @@ cd "$(git rev-parse --show-toplevel)"
hugo --cleanDestinationDir --printPathWarnings --panicOnWarning
find public \
-name '*.html' -or \
-name '*.xml' -or \
-name '*.txt' -or \
-name '*.css' -or \
-name '*.map' -or \
-name '*.pdf' | \
tee >(xargs -n1 -P$(nproc) zopfli) | \
tee >(xargs -n1 -P$(nproc) zstd -19) | \
xargs -n1 -P$(nproc) brotli
find public -type d | xargs -P4 -n1 make -j4 -sf $PWD/scripts/Makefile.static -C