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

Nuxt not using compressed files #5

Closed ghost closed 4 years ago

ghost commented 4 years ago

Hello. I don't know if this is a problem of this library, but I'll ask anyway.

The compressed bundle files are generated as they should, but nuxt does'nt use them. The files in the served html pages are the js-files.

Am I missing some configuration, or something else?

Ic3m4n34 commented 4 years ago

Hi @tuomasinkinen How did you solve this? I have the same issue. I'd appreciate your help

ghost commented 4 years ago

Hi @Ic3m4n34 I think this was really not a problem, since it's the role of some web server to serve those compressed files, not nuxt's.

I can't remember very accurately, this was so long ago, but I have a strong feeling that my question itself was stupid :)

Ic3m4n34 commented 4 years ago

@tuomasinkinen Thanks for your answer. I think you're right. I now solved this via Netlify. So my question regarding your questions is stupid as well and this issue can remain closed. Thanks again 🙂