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

Add option to show real build size not gzipped #23

Closed
jimblue opened this issue Jun 30, 2019 · 5 comments
Closed

Add option to show real build size not gzipped #23

jimblue opened this issue Jun 30, 2019 · 5 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@jimblue
Copy link

jimblue commented Jun 30, 2019

Hi,

When comparing real assets size to the output of your plugin I see a huge difference.

I guess it's because size-plugin show gzipped sizes...
This can be confusing or non relevant depending of the use case and it could be nice to add a column to the output. (to display both compressed and real assets size)

Or maybe just an option to choose what too show?!

Tks !!

@developit
Copy link
Collaborator

If we do this, I'd like to show uncompressed / gzip / brotli, and have a configuration option that allows specifying which to calculate + show.

@developit developit added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Aug 14, 2019
@kuldeepkeshwar
Copy link
Contributor

kuldeepkeshwar commented Aug 14, 2019

@developit @jimblue

How about something like

new SizePlugin({
 compression:['gzip','brotli'] // default is uncompressed
})

which outputs

                           file ⏤  brotli  gzip   uncompressed 
 bda2fc19cbf02a35c1b5.worker.js ⏤  20kB    25kB    80 kB
          editor.chunk.*****.js ⏤  18kB    22kB    65.8 kB

We also need to think about delta

@jimblue
Copy link
Author

jimblue commented Aug 14, 2019

💯 for adding delta

@timbomckay
Copy link

Is this plugin still maintained? Is there an alternative?

@developit
Copy link
Collaborator

developit commented Jan 29, 2021

Anyone can submit a pull request to add functionality, no need to wait for me!

This is implemented and released in 3.0.0:

new SizePlugin({ compression: 'none' })
// or
new SizePlugin({ compression: 'brotli' })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants