Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apollo package is too big #30

Closed
xpepermint opened this issue Feb 20, 2017 · 7 comments
Closed

apollo package is too big #30

xpepermint opened this issue Feb 20, 2017 · 7 comments

Comments

@xpepermint
Copy link

This is not directly related to vue-apollo but because I write vue application I decided to address this issue here.

My Vue application file size (the final build.js) is around 250KB (the whole application). When I attach vue-apollo and apollo-client, the file size exceeds to 350KB. Apollo client equips you with powerful tools but 100KB+ well... I would say this is huge.

What can we do about that?

@Akryum
Copy link
Member

Akryum commented Feb 20, 2017

Did you try measuring this with minification and gzip enabled? The vue-apollo package itself is very light.

@xpepermint
Copy link
Author

@Akryum unfortunately not. This is the minified size that I'm talking about. I believe gzip should be just an additional optimization.

@Akryum
Copy link
Member

Akryum commented Feb 20, 2017

gzipping should reduce the size of your app significantly.

@Akryum
Copy link
Member

Akryum commented Feb 20, 2017

Here is an example on upnkg.com for unminified version of apollo-client:
image

@stubailo
Copy link

Yeah Gzip is definitely not optional IMO - almost every single library is assuming people use Gzip when measuring bundle size. Otherwise people writing code have to worry about doing really fine-grained optimizations that are much better handled by a machine.

@xpepermint
Copy link
Author

ok, got it :)

@eduarddotgg
Copy link

Gzip doesn't reduces amount of js to be parsed. Not every server can use gzip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants