Closed VincentVToscano closed 9 years ago
This is intended, if you'd like to keep the quotes you could pass the option quotes: true
which will keep arbitrary quotes. Also it's valid HTML5, it might not validate for 4.01, but that is outside the scope of this project. Closing, feel free to re-open if you think I'm missing the issue.
Thank you. Adding quotes true fixed it.
.pipe(minifyHTML({quotes: true}))
I'm trying to minify all of my template files that have been precompiled. Each has a script tag surrounding the processed template. When I use gulp-minify-html on the following processed template, the script tags attributes loose their double quotes and the html is no longer valid:
Original file:
Result:
Usage: