pre-compress mjs files
This commit is contained in:
parent
c11249d678
commit
17e4f5a7ee
@ -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 {} \;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user