Skip to content

gzip build confusion #1117

Closed
Closed
@thisbejim

Description

@thisbejim

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.

Activity

tbillington

tbillington commented on Nov 30, 2016

@tbillington

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

thisbejim commented on Nov 30, 2016

@thisbejim
Author

Thanks for the explanation @tbillington, much appreciated!

Altiano

Altiano commented on Jul 8, 2017

@Altiano

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

gaearon commented on Jul 8, 2017

@gaearon
Contributor

Happy to review PRs that do something differently.

locked and limited conversation to collaborators on Jan 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @gaearon@tbillington@Altiano@thisbejim

        Issue actions

          gzip build confusion · Issue #1117 · facebook/create-react-app