smooth-code / bundle-analyzer

Keep your webpack bundle optimized over time 📦✨
https://www.bundle-analyzer.com
GNU General Public License v3.0
96 stars 4 forks source link

Configure size compare to not use compression #27

Closed kwonoj closed 4 years ago

kwonoj commented 4 years ago

I have configured size-limit to not use compression, also would like to apply same for size compare but not able to find it. Is there way to configure it?

gregberge commented 4 years ago

compression: "none" https://docs.bundle-analyzer.com/docs/size-limit/#check-size

kwonoj commented 4 years ago

@gregberge as asked in q, that's what I configured:

//config

module.exports = {
  files: [
    {
      test: '*.js',
      maxSize: '5MB',
      compression: 'none',
    },
  ],
}

but in checker I got this:

image

Size change's being reported as gzipped.

kwonoj commented 4 years ago

size limit is working expected as config : image

gregberge commented 4 years ago

@kwonoj yeah the presentation and the "limit" are not linked actually. Open to a PR to make it better.