pre-compress mjs files

This commit is contained in:
Daniel Micay 2021-01-27 20:27:58 -05:00
parent c11249d678
commit 17e4f5a7ee

View File

@ -27,6 +27,6 @@ done
find static_tmp -name '*.css' -exec csso {} -o {} \; find static_tmp -name '*.css' -exec csso {} -o {} \;
find static_tmp -name '*.js' -exec terser --module -cmo {} {} \; find static_tmp -name '*.js' -exec terser --module -cmo {} {} \;
find static_tmp -regex '.+\.\(atom\|css\|html\|ico\|js\|json\|pdf\|svg\|txt\|webmanifest\|xml\)' \ find static_tmp -regex '.+\.\(atom\|css\|html\|ico\|js\|json\|mjs\|pdf\|svg\|txt\|webmanifest\|xml\)' \
-exec zopfli {} \; -exec touch -r {} {}.gz \; \ -exec zopfli {} \; -exec touch -r {} {}.gz \; \
-exec brotli -k {} \; -exec brotli -k {} \;