wilsonzlin/minify-html

Feature Request: Add support for SSI comments

Jared-Sprague opened this issue · 1 comments

Hello!

We are using Server Side Includes, which is a standard that is used by many web servers such as Apache SSI.

The problem is that these are formatted as HTML comments, so the minifyer strips them out, because we want to strip out HTML comments but we want to leave SSI comments because they are important.

So the request is: Can you add support for SSI standard comments, to leave them in place, while stripping out other HTML comments?

Thanks for this suggestion, I've implemented this in version 0.12.0 as the keep_ssi_comments option, let me know if it works for you.