Closed n1cator closed 5 years ago
I believe most static site hosts (e.g. Netlify, Surge) and web servers (nginx, Express, Hapi, etc) can automatically gzip assets for you, so this is usually more of a backend than frontend concern.
@chrisvfritz Works well with the nginx gzip_static module but I would still provide a PR if wanted.
There are a couple reasons compression isn't already built into this project (or Vue CLI). Gzipping here would:
Content-Encoding: gzip
So I'd rather keep that concern out of this project. Does that make sense?
I feel like in a Production Build it would be nice to offer compressed .js files (for Mobile Users) e.g. gzip, compression-webpack-plugin could be a Candidate for this.