brotli keeps source files by default

This commit is contained in:
Daniel Micay 2022-11-01 00:20:05 -04:00
parent a237170e3a
commit ff459a85d4

View File

@ -90,11 +90,6 @@ for file in static-tmp/**/*.@(atom|xml); do
xmllint --noblanks "$file" --output "$file"
done
brotli_k() {
brotli -k "$@"
}
export -f brotli_k
zopfli_preserve_time() {
zopfli "$1"
touch -r "$1" "$1.gz"
@ -102,4 +97,4 @@ zopfli_preserve_time() {
export -f zopfli_preserve_time
find static-tmp -regex '.+\.\(atom\|css\|html\|ico\|js\|json\|mjs\|pdf\|svg\|txt\|webmanifest\|xml\)' |
parallel -q ::: brotli_k zopfli_preserve_time :::: -
parallel -q ::: brotli zopfli_preserve_time :::: -