1.0.0 • Published 5 years ago

bundlesize-plugin-brotli v1.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

 

Note:

If you are using Node version >= 10.16.0, you do not need this plugin.

 

Install

npm install bundlesize-plugin-brotli --save-dev

# or

yarn add bundlesize-plugin-brotli --dev

 

Setting up bundlesize

 

See bundlesize usage here: https://github.com/siddharthkp/bundlesize

 

Using brotli compression

 

By default, bundlesize gzips your build files before comparing.

If you are using brotli instead of gzip, you can specify that with each file:

{
  "files": [
    {
      "path": "./build/vendor.js",
      "maxSize": "5 kB",
      "compression": "brotli"
    }
  ]
}