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

webpack 打包产物分析中 stat size/parsed size/gzipped size 都是什么 #92

Open
nmsn opened this issue May 4, 2023 · 1 comment

Comments

@nmsn
Copy link
Owner

nmsn commented May 4, 2023

image

打包产物分析时出现的三种文件大小都是什么

@nmsn
Copy link
Owner Author

nmsn commented May 4, 2023

Stat size

直接从 webpack stats 对象中获取,并按原样使用模块的实际源代码,并在 minify 或 gzip 之前报告大小

Parsed size

经过构建工具压缩的大小,例如 UglifyJS/Terser 等工具处理后的大小

Gzipped size

如类型所述,是 Parsed Size 由经过 gzip 压缩处理后的大小,通常用来描述传输过程中的大小(浏览器传输过程中通常经过 gzip 处理)

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

No branches or pull requests

1 participant