kangax / html-minifier

Javascript-based HTML compressor/minifier (with Node.js support)
http://kangax.github.io/html-minifier/
MIT License
4.92k stars 568 forks source link

After minify <!doctypehtml> #1136

Closed shinokada closed 1 year ago

shinokada commented 1 year ago

I use the code from the README.

html-minifier  --collapse-whitespace --remove-comments --remove-optional-tags --remove-redundant-attributes --remove-script-type-attributes --remove-tag-whitespace --use-short-doctype --minify-css true --minify-js true --input-dir path/to/input --output-dir path/to/output

When I use this, I get <!doctypehtml>. Is this ok? Shouldn't it be <!doctype html>?

shinokada commented 1 year ago

I think I need to remove --use-short-doctype.