remove unnecessary zopfli wrapper
The timestamps of the generated static files are no longer used.
This commit is contained in:
parent
93cf3596cc
commit
5111d8f1fb
@ -92,11 +92,5 @@ for file in static-tmp/**/*.@(atom|xml); do
|
|||||||
xmllint --noblanks "$file" --output "$file"
|
xmllint --noblanks "$file" --output "$file"
|
||||||
done
|
done
|
||||||
|
|
||||||
zopfli_preserve_time() {
|
|
||||||
zopfli "$1"
|
|
||||||
touch -r "$1" "$1.gz"
|
|
||||||
}
|
|
||||||
export -f zopfli_preserve_time
|
|
||||||
|
|
||||||
find static-tmp -regex '.+\.\(atom\|css\|html\|ico\|js\|json\|mjs\|pdf\|svg\|txt\|webmanifest\|xml\)' |
|
find static-tmp -regex '.+\.\(atom\|css\|html\|ico\|js\|json\|mjs\|pdf\|svg\|txt\|webmanifest\|xml\)' |
|
||||||
parallel -q ::: brotli zopfli_preserve_time :::: -
|
parallel -q ::: brotli zopfli :::: -
|
||||||
|
Loading…
x
Reference in New Issue
Block a user