brotli-webpack-plugin icon indicating copy to clipboard operation
brotli-webpack-plugin copied to clipboard

Use native node brotli support

Open klarstrup opened this issue 6 years ago • 3 comments

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.

klarstrup avatar Jan 19 '19 19:01 klarstrup

Thanks for the tip, @klarstrup, I'll look into it!

mynameiswhm avatar Jan 21 '19 20:01 mynameiswhm

Any update @mynameiswhm? :)

HapLifeMan avatar Mar 24 '19 20:03 HapLifeMan

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.

samkelleher avatar Jun 16 '19 02:06 samkelleher