brotli-webpack-plugin
brotli-webpack-plugin copied to clipboard
Use native node brotli support
Node 11.7 landed Brotli support: https://github.com/nodejs/node/pull/24938 https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V11.md#notable-changes
It'd probably be nice to publish a new major version of this plugin aimed at this node version and onwards.
Thanks for the tip, @klarstrup, I'll look into it!
Any update @mynameiswhm? :)
Since brotli support became available native, it's not necessary to use a separate plugin for it at all, you can use https://github.com/webpack-contrib/compression-webpack-plugin (which this plugin was originally based). The regular compression plugin works because it itself is wrapping zlib.