README
Plugin to use brotli compression with bundlesize on Node < 10.6.0
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"
}
]
}