minify-html icon indicating copy to clipboard operation
minify-html copied to clipboard

Don't attempt to minify `script`/`style` tags with no content

Open RealOrangeOne opened this issue 1 year ago • 0 comments

This is more common with script tags, where most uses will reference external script files than inline scripts.

Skipping this, even when JS / CSS minification is enabled avoids the need to spin up the minification libraries entirly.

I've intentionally made the code change here, rather than where ScriptOrStyleContent is determined, as the code change was significantly smaller with the same effect.

RealOrangeOne avatar May 04 '24 21:05 RealOrangeOne