kangax / html-minifier

Javascript-based HTML compressor/minifier (with Node.js support)
http://kangax.github.io/html-minifier/
MIT License
4.92k stars 568 forks source link

Disable parsing attributes #1140

Open dandeancook opened 1 year ago

dandeancook commented 1 year ago

My attribute has ES6 template value:

style="width:${Width};"

After minifying it becomes

style=width:{}

I don't see an option to change this, seems like html-minifier is evaluating that attribute value?

dandeancook commented 1 year ago

Found the culprit, minifyCSS is default true, but documentation on project home page says false