mirror of
https://github.com/GrapheneOS/matrix.grapheneos.org.git
synced 2025-12-16 00:13:55 -05:00
split brotli and zopfli jobs
This commit is contained in:
parent
8a4a3ef0df
commit
1a6400af4e
1 changed files with 6 additions and 1 deletions
|
|
@ -11,5 +11,10 @@ cp --remove-destination webapps/element/config.json static_tmp/config.json
|
||||||
|
|
||||||
cp nginx/nginx.conf nginx.conf.tmp
|
cp nginx/nginx.conf nginx.conf.tmp
|
||||||
|
|
||||||
|
brotli_k() {
|
||||||
|
brotli -k "$@"
|
||||||
|
}
|
||||||
|
export -f brotli_k
|
||||||
|
|
||||||
find static_tmp -regex '.+\.\(css\|html\|ico\|js\|json\|map\|svg\|txt\|webmanifest\|xml\|wasm\)' |
|
find static_tmp -regex '.+\.\(css\|html\|ico\|js\|json\|map\|svg\|txt\|webmanifest\|xml\|wasm\)' |
|
||||||
parallel "brotli -k {}; zopfli {}"
|
parallel -q ::: brotli_k zopfli :::: -
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue