[compression-webpack-plugin]: Add 'brotliCompress' to the list of supported algorithms (#36840)

* Add 'brotliCompress' to the list of supported algorithms.

* Update version to 2.0.1.

* Remove patch version.

* Reset the version back down to 2.0.
This commit is contained in:
Chris3773 2019-07-16 17:23:17 -04:00 committed by Andrew Branch
parent 4477702e07
commit e67dc39bf6

View File

@ -19,7 +19,7 @@ declare namespace CompressionPlugin {
type Algorithm<O> = (source: string, options: O, callback: AlgorithmCallback) => void;
// NOTE: These are the async compression algorithms on the zlib object.
type ZlibAlgorithm = 'deflate' | 'deflateRaw' | 'gzip';
type ZlibAlgorithm = 'deflate' | 'deflateRaw' | 'gzip' | 'brotliCompress';
type Pattern = string | RegExp | ReadonlyArray<RegExp> | ReadonlyArray<string>;
interface BaseOptions {