• Resolved talyatarget

    (@talyatarget)


    Hi, I’m using Knockout.js on some of my pages, which sometimes includes syntax utilizing HTML comments <!– ko [some binding goes here] –><!– /ko –>. When I use your plugin to minify the HTML it removes all my comments, which in my case is detrimental. Is it possible to minify HTML without removing comments? Would you consider adding that as an option?

    HTML comments are also historically used to write code for specific versions of IE, so I think mine isn’t the only use-case.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author uPress

    (@upress)

    Hi,
    We are investigating the issue you have stated and we will update you soon.

    Plugin Author uPress

    (@upress)

    Hi,
    Really sorry for the late reply,
    We have added an option to not remove comments a few versions back.
    We also added the Knockout.js comments to the minification whitelist so they should not be removed even if the remove comments option is enabled, but you can disable the removal of comments if it is still a problem.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Minifying HTML removes all comments’ is closed to new replies.