-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
feat(reporter): show gzip info for all compressible files (fix #11288) #12485
feat(reporter): show gzip info for all compressible files (fix #11288) #12485
Conversation
|
@ArnaudBarre Please let me know if I can improve anything. This is my first PR, here 🎉 |
be2b8fb
to
0378c91
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
WDYT @patak-dev?
0378c91
to
afba870
Compare
afba870
to
51a46da
Compare
.wasm files are generally highly compressible as well. One file I have went from 89.3K to 20.1K after gzip. It'd be nice to see that extension included as well. |
Feel free to add |
Wasm files are often highly compressible and it would be nice to show their compressed size in Vite builds. I found an earlier PR (vitejs#12485) that made this change for some other asset types, and a [comment](vitejs#12485 (comment)) that sounded open to the addition of wasm to the list, which I've added.
Description
This is a fix/feature-update for #11288
The reporter plugin should show gzip information not only for
js
andcss
files but also for other compressible files likesvg
,html
.Additional context
see #11288 (comment)
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).We need to further discuss the liste of file-extensions we want to show the gzip information for.