mkxml / vscode-filesize

filesize package for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=mkxml.vscode-filesize
MIT License
60 stars 13 forks source link

Add support for Brotli compression #25

Closed dutzi closed 3 years ago

dutzi commented 3 years ago

It's pretty common these days, and has a port for Node (see here).

Would be useful to get a glance of the Brotli-compressed size as well within the table:

+--------------------------------------------------------------+
| Size         | 2.77 KiB                                      |
|--------------------------------------------------------------|
| Gzipped      | 1008 bytes                                    |
|--------------------------------------------------------------|
| Brotli       | 780 bytes                                     | <--- this guy
|--------------------------------------------------------------|
| Mime type    | application/javascript                        |
|--------------------------------------------------------------|
| Created      | January 31st 2021, 09:51:00                   |
|--------------------------------------------------------------|
| Changed      | January 31st 2021, 11:27:44                   |
+--------------------------------------------------------------+
dutzi commented 3 years ago

Even better: https://github.com/erwinmombay/brotli-size

mkxml commented 3 years ago

Nice, I agree brotli support should be useful. I'm reviewing your PR.

mkxml commented 3 years ago

It's available on 3.0.0. Thank you for your contribution!