brotli keeps source files by default

This commit is contained in:
Daniel Micay 2022-11-01 00:20:47 -04:00
parent d5ed786d2a
commit 5fe0978ef2

View File

@ -26,11 +26,6 @@ rm -rf static-tmp
cp -a /usr/share/webapps/element static-tmp
cp --remove-destination webapps/element/config.json static-tmp/config.json
brotli_k() {
brotli -k "$@"
}
export -f brotli_k
zopfli_preserve_time() {
zopfli "$1"
touch -r "$1" "$1.gz"
@ -38,4 +33,4 @@ zopfli_preserve_time() {
export -f zopfli_preserve_time
find static-tmp -regex '.+\.\(css\|html\|ico\|js\|json\|map\|svg\|txt\|wasm\|xml\)' |
parallel -q ::: brotli_k zopfli_preserve_time :::: -
parallel -q ::: brotli zopfli_preserve_time :::: -