bencodezen / vue-enterprise-boilerplate

An ever-evolving, very opinionated architecture and dev environment for new Vue SPA projects using Vue CLI.
7.78k stars 1.32k forks source link

Webpack Compression #96

Closed n1cator closed 5 years ago

n1cator commented 6 years ago

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.

chrisvfritz commented 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.

n1cator commented 5 years ago

@chrisvfritz Works well with the nginx gzip_static module but I would still provide a PR if wanted.

chrisvfritz commented 5 years ago

There are a couple reasons compression isn't already built into this project (or Vue CLI). Gzipping here would:

So I'd rather keep that concern out of this project. Does that make sense?