Skip to content

Commit 42df781

Browse files
committed
compress static files in parallel
1 parent c134314 commit 42df781

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

process-static

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,4 @@ find static_tmp -name '*.html' -exec html-minifier --collapse-whitespace \
3434

3535
find static_tmp -name '*.xml' -exec xmllint --noblanks {} --output {} \;
3636
find static_tmp -regex '.+\.\(css\|html\|ico\|js\|json\|svg\|txt\|webmanifest\|xml\)' \
37-
-exec zopfli {} \; -exec touch -r {} {}.gz \; \
38-
-exec brotli -k {} \;
37+
parallel "brotli -k {}; zopfli {} && touch -r {} {}.gz"

0 commit comments

Comments
 (0)