Jens Oliver Meiert
Jens Oliver Meiert
Thanks @AngelTs! This should be fixed now in [version 2.1.5 of HTML Minifier Next](https://www.npmjs.com/package/html-minifier-next)—see e.g. [the web-based version](https://j9t.github.io/html-minifier-next/).
This should have been improved in [HTML Minifier Next](https://github.com/j9t/html-minifier-next) (maintained successor), if this is still of interest.
Overwriting existing files should work fine, as in `html-minifier --collapse-whitespace --remove-comments -o index.html index.html`. The problem you’ve run into relates to directories—this doesn’t work so to prevent infinite loops.
AFAIK this wasn’t and isn’t possible yet. If there’s more demand for this, this could be considered as a feature in [HTML Minifier Next](https://github.com/j9t/html-minifier-next) (maintained fork).
Can reproduce on https://kangax.github.io/html-minifier/. Cross-tested on https://j9t.github.io/html-minifier-next/ where it seems to work. Did you test there on that page, is it the defaults there that you’re referring to? (The defaults...
Does this issue still persist? When testing in the web versions both of [HTML Minifier](https://kangax.github.io/html-minifier/) and of [HTML Minifier Next](https://j9t.github.io/html-minifier-next/) (maintained fork), I cannot reproduce. (If I missed a setting,...
Interesting! Added it to my list of issues to review for HTML Minifier Next. (This may take a while, but I do hope to get there.)
@humaknlght, I dug into this and it seems this is due to the `--no-html5` flag. In HMN, you can [reproduce in the web version](https://j9t.github.io/html-minifier-next/#N4IgliBcIDwIQBMD2BjALgTwA4FMAEAFmgLYA2AfADoB2MaYapO5AKjgM5owD09jzNGAjAA3PClIBDduwC8lEJIBOaAMJJqaHJoXiNWzTmFpJAIybyQAM0ml2OBVWp4XeGJMJKcVy92VpuMGIAc24AJgA6ACssYMcaV0S3KzBggFcvJyTstyDgvHYlFF9-QJDw6NjdAHcwBDQCSwBWJrDdAhxUoksAdgBOJoVuLJzEmBTglEkseg1WHDQlMHYeCamZsDmEnNXUjIFnVx5JJx5hEXIQABoQJChQKfsAZW12BlEcKBs7HBuUJFIUiw9gAktRSGBqDgWJJggB1AgMDhYSQoT6Qb72P4aexKESSegiHDqQHTexQRZpX7gagSNIIHAAQTSaCQAHFtDglASjDDguwvrYsSAANY4HBYVSkJBvajBJ5SdgEQU-G7ESQADwAMpCcFrtMEGlAQNcQMRIWArBgAKoAJS1AsglOp1CQADkcNUIVD2AAhbxILx8qUy9HOm4olRgWwAWWUIrSWBVwqwXlxRJ1UN9XkkIsd4ZAqZwRM0jLQizAphZHAAoux1pDgsnqQBHNJILSqAjKVFaJTG01eYhIIk14gzDA1pjEbRoR2Y6lDkfQ2EIpHsFFo5s3diBtBlitVrTzoXU3cqKXSdhuyQz5sAX3vQA) when flicking the HTML option. I...
There’s no support for AMP-specific markup. Given the development around AMP there are probably no plans to add any support here (not maintained anymore) or in forks (like HTML Minifier...
@dd8, not sure where this stands but if you’re open to providing a patch this can probably help—CC/FYI @sideshowbarker if that’s not accurate.