Home > Software design >  Why is the package size of NPM run bulid inconsistent with the website (React)
Why is the package size of NPM run bulid inconsistent with the website (React)

Time:05-07

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]: enter image description here

CodePudding user response:

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

  • Related