aurelia-contrib / aurelia-getting-started

Basically a queue of topics and examples to cover
MIT License
20 stars 5 forks source link

Create how-to-enable-gzip-compression.md #30

Closed gama410 closed 6 years ago

gama410 commented 6 years ago

A recipe for adding gzip compression to the aurelia-cli run task as discussed here

3cp commented 6 years ago

To be frank, I did not see much value of gzip compression for dev setup, as the bandwidth is unlikely an issue in dev mode.

As you stated in original cli issue, we don’t need compression in build either. Because in production, compression is handled at different layer (nginx for instance).

maroy1986 commented 6 years ago

I do agree with @huochunpeng, I don't see a real value of having GZIP compression in a dev environment. As he said, this is handled by the web server (nginx, apache, iis) at the end and the CLI shouldn't even know about it.

gama410 commented 6 years ago

You're right, there is no real need for it in dev, although I needed it for test purpose on my setup while trying to find an acceptable bundle organization...

maroy1986 commented 6 years ago

I see now, make sense in that case. Anyway, there's never enough documentation to cover what everybody wants to do :)