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

gzip build confusion #1117

Closed
thisbejim opened this issue Nov 30, 2016 · 4 comments
Closed

gzip build confusion #1117

thisbejim opened this issue Nov 30, 2016 · 4 comments

Comments

@thisbejim
Copy link

thisbejim commented Nov 30, 2016

Pretty sure I am missing something here so please bear with me.

When I build a project I get the following message:

gzip

However the js build is actually 483kb. What am I missing here? Cheers.

@tbillington
Copy link

tbillington commented Nov 30, 2016

The built js file in your directory is not gzipped, it's only minified. When you serve that file the file and gzip it (which is the standard way to deliver content) that's the size that will actually be transferred. If you use the pushstate server as demonstrated in the build output and look at the transfer size in the network inspector in your browser dev tools you will see it only transfers the amount specified by the gzip size.

It might be handy to read a guide on how web servers do gzip

@thisbejim
Copy link
Author

Thanks for the explanation @tbillington, much appreciated!

@Altiano
Copy link

Altiano commented Jul 8, 2017

I think it is better to show the actual size too. This got me confused before. I thought that it already gzip'ed but it is not. Might reconsider this #1908 ?

@gaearon
Copy link
Contributor

gaearon commented Jul 8, 2017

Happy to review PRs that do something differently.

@lock lock bot locked and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants