kangax / html-minifier

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

ignore directory #1133

Open mihaiav opened 2 years ago

mihaiav commented 2 years ago

How can you ignore a subdirectory from minifying ? I have a ./static/libs directory that I wold like html-minifier to ignore when it processes the --input-dir

html-minifier --file-ext html --input-dir ./static --output-dir ./static --collapse-whitespace --remove-comments --remove-redundant-attributes --remove-script-type-attributes --remove-tag-whitespace --minify-css true --minify-js true