Skip to content

Commit

Permalink
chore: add keep-special-comments to bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
mrf345 committed Jun 9, 2024
1 parent f75995c commit c625b71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bindings/js/minify.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ func minifyConfig(ckeys **C.char, cvals **C.char, length C.longlong) *C.char {
htmlMinifier.KeepComments, err = strconv.ParseBool(vals[i])
case "html-keep-conditional-comments":
htmlMinifier.KeepConditionalComments, err = strconv.ParseBool(vals[i])
case "html-keep-special-comments":
htmlMinifier.KeepSpecialComments, err = strconv.ParseBool(vals[i])
case "html-keep-default-attr-vals":
htmlMinifier.KeepDefaultAttrVals, err = strconv.ParseBool(vals[i])
case "html-keep-document-tags":
Expand Down
2 changes: 2 additions & 0 deletions bindings/py/minify.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ func minifyConfig(ckeys **C.char, cvals **C.char, length C.longlong) *C.char {
htmlMinifier.KeepComments, err = strconv.ParseBool(vals[i])
case "html-keep-conditional-comments":
htmlMinifier.KeepConditionalComments, err = strconv.ParseBool(vals[i])
case "html-keep-special-comments":
htmlMinifier.KeepSpecialComments, err = strconv.ParseBool(vals[i])
case "html-keep-default-attr-vals":
htmlMinifier.KeepDefaultAttrVals, err = strconv.ParseBool(vals[i])
case "html-keep-document-tags":
Expand Down

0 comments on commit c625b71

Please sign in to comment.