Closed zefir-git closed 2 years ago
This issue was caused by using @node-minify with @node-minify/html-minifier. I have resolved it by using this package directly without @node-minify.
Hi @williamd5 ! Could you please expand on your solution? I think I might have been bitten by the same issue. How do you use
this package directly without @node-minify.
?
Hi @williamd5 ! Could you please expand on your solution? I think I might have been bitten by the same issue. How do you use
this package directly without @node-minify.
?
I was using a different package (@node-minify) which provides something like a wrapper around this (@html-minifer) and some other minify packages bundled together.
The way to control this behaviour in @html-minifier is with the collapseInlineTagWhitespace
option.
The following source HTML
Produces
Except for using
conservativeSpaces
, is there a way to fix this? I want unneeded spaces removed. Spaces in text are clearly needed.