feat(reporter): show gzip info for all compressible files (fix #11288)#12485
Merged
patak-cat merged 1 commit intovitejs:mainfrom Mar 23, 2023
Merged
Conversation
|
|
Contributor
Author
|
@ArnaudBarre Please let me know if I can improve anything. This is my first PR, here 🎉 |
ArnaudBarre
reviewed
Mar 19, 2023
be2b8fb to
0378c91
Compare
ArnaudBarre
previously approved these changes
Mar 19, 2023
bluwy
reviewed
Mar 21, 2023
7 tasks
0378c91 to
afba870
Compare
ArnaudBarre
reviewed
Mar 21, 2023
afba870 to
51a46da
Compare
ArnaudBarre
approved these changes
Mar 21, 2023
patak-cat
approved these changes
Mar 23, 2023
|
.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. |
Contributor
Author
Feel free to add |
yurivish
added a commit
to yurivish/vite
that referenced
this pull request
Dec 27, 2024
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This is a fix/feature-update for #11288
The reporter plugin should show gzip information not only for
jsandcssfiles 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.