Broccoli plugin to compress trees using Brotli
npm install broccoli-brotli


Fork of broccoli-zopfli (which is a fork of broccoli-gzip) to use Brotli instead of Zopfli instead of gzip to perform compression. All credit goes to the original authors of broccoli-{zopfli,gzip}.
``bash`
$ npm i broccoli-brotli
`javascript
const Brotli = require('broccoli-brotli')
const tree = new Brotli('app', {
extensions: ['js', 'css', 'svg']
})
`
---
options.extensions {Array} (required)
The file extensions that should be compressed.
---
options.keepUncompressed {Boolean} (optional, default false)
Whether to keep uncompressed versions of the files in the resulting tree.
---
options.appendSuffix {Boolean} (optional, default true)
Whether to append the .br extension suffix to compressed files.
---
options.XXX
Where XXX` comes from BrotliOptions.
---
broccoli-brotli is, like broccoli-zopfli, distributed under the MIT license.