noneName
noneName

Reputation: 3

Why is the package size of NPM run bulid inconsistent with the website (React)

I use NPM run bulid to package the website, and the console displays chunk JS is 1.04MB in size, but when I open ifinder locally, the file size is 3.8m. Why?

[png1] [1]: https://i.sstatic.net/uOi0R.png ; [png2] [2]: https://i.sstatic.net/olnqL.png

Upvotes: 0

Views: 400

Answers (2)

Mounish
Mounish

Reputation: 31

Beacuse it was compressed by gzip. Gzip compresses upto 90% of the file size.

Upvotes: 0

1900 TD Lemon
1900 TD Lemon

Reputation: 41

Its file size after gzip, Not actual file size

enter image description here

Upvotes: 1

Related Questions