mirror of
https://github.com/GrapheneOS/matrix.grapheneos.org.git
synced 2024-12-18 20:34:39 -05:00
compress static files in parallel
This commit is contained in:
parent
dc00b338c6
commit
265576f637
@ -11,6 +11,5 @@ 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
|
||||||
|
|
||||||
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\)' |
|
||||||
-exec zopfli {} \; -exec touch -r {} {}.gz \; \
|
parallel "brotli -k {}; zopfli {} && touch -r {} {}.gz"
|
||||||
-exec brotli -k {} \;
|
|
||||||
|
Loading…
Reference in New Issue
Block a user