esphome-docs/minify.sh
2018-05-13 11:37:02 +02:00

4 lines
264 B
Bash
Executable File

find _build/html/ -name "*.html" | while read html;do
html-minifier --collapse-whitespace --remove-comments --remove-optional-tags --remove-redundant-attributes --remove-script-type-attributes --remove-tag-whitespace --use-short-doctype "$html" -o "$html"
done