Skip to content

Commit

Permalink
remove unnecessary zopfli wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed Mar 6, 2024
1 parent 06ce89b commit b20d7a7
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions process-static
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@ for file in static-tmp/**/*.json; do
json_reformat -m < "$file" | sponge "$file"
done

zopfli_preserve_time() {
zopfli "$1"
touch -r "$1" "$1.gz"
}
export -f zopfli_preserve_time

find static-tmp -name '*.xml' -exec xmllint --noblanks {} --output {} \;
find static-tmp -regex '.+\.\(ico\|json\|svg\|txt\|xml\)' |
parallel -q ::: brotli zopfli_preserve_time :::: -
parallel -q ::: brotli zopfli :::: -

0 comments on commit b20d7a7

Please sign in to comment.