NUglify icon indicating copy to clipboard operation
NUglify copied to clipboard

Support Knockout comments in HTML

Open rudym87 opened this issue 10 years ago • 2 comments

Currently Knockout comments for containerless bindings in a HTML file get stripped away like normal comments. A fragment like this:

<div>
    <!--ko if: observable-->
    <p></p>
    <!--/ko-->
</div>

gets minified to this:

<div><p></p></div>

instead of this:

<div><!--ko if:observable--><p></p><!--/ko--></div>

rudym87 avatar Jun 21 '16 07:06 rudym87

This is high priority IMO. AjaxMin had this feature

madskristensen avatar Jun 21 '16 18:06 madskristensen

This is fixed by commit 44a36ae

xoofx avatar Jul 01 '16 04:07 xoofx