html-minifier-module icon indicating copy to clipboard operation
html-minifier-module copied to clipboard

Deprecation Suggestion

Open harlan-zw opened this issue 2 years ago • 2 comments

As this module looks like it never left an experimental stage, I'd suggest that we deprecate it.

cc: @Atinux thoughts?

harlan-zw avatar Sep 11 '23 15:09 harlan-zw

Would be worth a benchmark on somewhere like nuxt.com to see if still HTML minifier has performance impacts or not. We have enough hooks and if it improves anything, we might think to either port it to Nuxt 3 (prerender +- runtime) or even part of core ecosystem.

pi0 avatar Sep 11 '23 17:09 pi0

I actually had to dig through the Nitro code to make sure this wasn't already handled with compressAssets :laughing:

Afaik the performance improvements are quite negligible so having it opt-in makes more sense to me.

harlan-zw avatar Sep 11 '23 18:09 harlan-zw