robcresswell / nuxt-compress

A simple static asset compression module for Nuxt that runs Gzip and Brotli compression during the build process
https://www.npmjs.com/package/nuxt-compress
MIT License
103 stars 9 forks source link

Suggestion: Highlight the advantage of nuxt-compress compare to the normal compression system used by Nuxt #39

Closed trollepierre closed 3 years ago

trollepierre commented 3 years ago

If I add nuxt-compress , what will be the advantage over https://www.npmjs.com/package/compression already set in nuxt

Could it be possible to add this in the Readme, in order to make it clear for next visitor interesting by this package

thanks ;-)

robcresswell commented 3 years ago

The first two lines of the README explain what the difference is. The compression middleware is at runtime, but this is during build time, so there's no runtime performance hit from compressing.

trollepierre commented 3 years ago

Ok I got it better.

I don't understand why the Core Team of Nuxt is not using nuxt-compress by default, in that case.

"Using nuxt-compress at build time and then, the compression middleware." => should be a feature in Nuxt

robcresswell commented 3 years ago

Maybe. It's hard to draw the line between plugins and core. This is a really tiny plugin so I'm happy to maintain it.