mirror of
https://git.ari.lt/ari.lt/ari.lt.git
synced 2025-02-04 17:49:24 +01:00
Fix the minhtml script
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
parent
b091851e90
commit
e5f674c19b
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ main() {
|
|||
echo 'Minifying all 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 mv {}.min {} \; \
|
||||
-exec sh -c "printf '\n\n%s\n' '<!-- source code @ /git -->' >>\"\$1\"" -- {} \;
|
||||
|
|
Loading…
Add table
Reference in a new issue