Skip to content

Commit

Permalink
run html-minifier from $PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
erfur committed Feb 28, 2020
1 parent 048ae58 commit 4c8b563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/doit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ cat "$FILE" | htmlbeautifier -t 4 > "$FILE.beautiful"
./rowspan-normalizer.sh "$FILE.beautiful"

# uglify html source (to remove line breaks)
cat "$FILE.beautiful" | ~/node_modules/html-minifier/cli.js --collapse-whitespace > "$FILE.ugly"
cat "$FILE.beautiful" | html-minifier --collapse-whitespace > "$FILE.ugly"

# remove some unwanted tags
./tag-remover.sh "$FILE.ugly" header
Expand Down

0 comments on commit 4c8b563

Please sign in to comment.