Skip to content

Commit 1f94fc9

Browse files
committed
compress static files in parallel
1 parent c134314 commit 1f94fc9

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

process-static

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,5 @@ find static_tmp -name '*.html' -exec html-minifier --collapse-whitespace \
3333
--remove-style-link-type-attributes --sort-attributes --sort-class-name {} -o {} \;
3434

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

0 commit comments

Comments
 (0)