html-minifier icon indicating copy to clipboard operation
html-minifier copied to clipboard

ignore directory

Open mihaiav opened this issue 3 years ago • 1 comments

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

mihaiav avatar Aug 03 '22 17:08 mihaiav

This is now possible starting version 4.9.0 of HTML Minifier Next (enhanced compatible successor), via the --ignore-dir/ignoreDir option. Let me know if you find any issues!

j9t avatar Dec 13 '25 19:12 j9t