Taco de Wolff

Results 170 comments of Taco de Wolff

Work has been put in #379 to support a JS binding natively. It should already compile and build, if anyone's interested in making a webpack plugin I'd be happy to...

Official JS bindings have been released to https://www.npmjs.com/package/@tdewolff/minify from v2.12.0 onwards.

Good request, but not something I will attend to anytime soon though... I'll put it on the roadmap!

Source map specs: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#

The author of esbuild made it clear that he will not provide an API for libraries even though it was widely requested. This means `minify` can't incorporate esbuild. Another fact...

That's correct, the minifiers work according to the specs, and templates are really a syntax layer over original file format. You could make a preprocessor to skip everything between double...

Some thoughts I needed to write down: It would be an awesome feature if the minifier (and then specifically the HTML minifier) could handle Go templates correctly (ignore `{{ ......

Yes, I think so too especially since minification is so fast. But if you would minify templates you only have to minify once (and accept that the inserted HTML from...

XML flavor should be parsed by the XML minifier, the HTML minifier is for HTML5 only. The HTML5 spec specifies that [tags](https://dev.w3.org/html5/html-author/#html-and-xhtml-comparison-0) and [attributes](https://dev.w3.org/html5/html-author/#html-and-xhtml-comparison-1) are case-insensitive. It also appears that...

That'll probably solve the problem. I'm going to look into supporting this soon!