diff --git a/process-static b/process-static index 8b68fb71..5cbabc41 100755 --- a/process-static +++ b/process-static @@ -33,6 +33,5 @@ find static_tmp -name '*.html' -exec html-minifier --collapse-whitespace \ --remove-style-link-type-attributes --sort-attributes --sort-class-name {} -o {} \; find static_tmp -name '*.xml' -exec xmllint --noblanks {} --output {} \; -find static_tmp -regex '.+\.\(css\|html\|ico\|js\|json\|svg\|txt\|webmanifest\|xml\)' \ - -exec zopfli {} \; -exec touch -r {} {}.gz \; \ - -exec brotli -k {} \; +find static_tmp -regex '.+\.\(css\|html\|ico\|js\|json\|svg\|txt\|webmanifest\|xml\)' | + parallel "brotli -k {}; zopfli {} && touch -r {} {}.gz"