Skip to content

Commit

Permalink
remove unnecessary zopfli wrapper
Browse files Browse the repository at this point in the history
The timestamps of the generated static files are no longer used.
  • Loading branch information
thestinger committed Mar 6, 2024
1 parent b6e664c commit f051481
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 @@ -71,11 +71,5 @@ find static-tmp -name '*.html' -exec html-minifier-terser --collapse-whitespace

find static-tmp -name '*.xml' -exec xmllint --noblanks {} --output {} \;

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

find static-tmp -regex '.+\.\(css\|html\|ico\|js\|json\|svg\|txt\|webmanifest\|xml\)' |
parallel -q ::: brotli zopfli_preserve_time :::: -
parallel -q ::: brotli zopfli :::: -

0 comments on commit f051481

Please sign in to comment.