Fix the minhtml script

Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
Ari Archer 2022-10-01 04:05:36 +03:00
parent b091851e90
commit e5f674c19b

View file

@ -7,7 +7,7 @@ main() {
echo 'Minifying all HTML' echo 'Minifying all HTML'
find . -not -ipath "./node_modules/*" -type f -name "*.html" \ find . -not -ipath "./node_modules/*" -type f -name "*.html" \
-exec html-minifier --collapse-whitespace --collapse-inline-tag-whitespace --remove-tag-whitespace -o {}.min {} \; \ -exec html-minifier --collapse-whitespace -o {}.min {} \; \
-exec rm {} \; \ -exec rm {} \; \
-exec mv {}.min {} \; \ -exec mv {}.min {} \; \
-exec sh -c "printf '\n\n%s\n' '<!-- source code @ /git -->' >>\"\$1\"" -- {} \; -exec sh -c "printf '\n\n%s\n' '<!-- source code @ /git -->' >>\"\$1\"" -- {} \;