cfware / babel-plugin-template-html-minifier

Minify HTML in tagged template strings using html-minifier
MIT License
63 stars 4 forks source link

Fix processing of JavaScript escape codes inside html templates. #9

Closed coreyfarrell closed 5 years ago

coreyfarrell commented 5 years ago

We were providing quasi.value.cooked to the html-minifier which was causing problems for CSS escape sequences such as content: "\\2003". Switch to using quasi.value.raw.

Fixes #8

web-padawan commented 5 years ago

Thanks for the fix! Confirmed it works at web-padawan/polymer3-webpack-starter@face1ce

coreyfarrell commented 5 years ago

This is now released to 2.1.2.

coreyfarrell commented 5 years ago

Thanks for testing!