We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f3b595 commit 9d05172Copy full SHA for 9d05172
index.js
@@ -32,7 +32,15 @@ function CompressionPlugin(options) {
32
var zlib = require("zlib");
33
this.algorithm = zlib[this.algorithm];
34
if(!this.algorithm) throw new Error("Algorithm not found in zlib");
35
- this.algorithm = this.algorithm.bind(zlib);
+ this.algorithm = this.algorithm.bind(zlib, {
36
+ level: options.level || 9,
37
+ flush: options.flush,
38
+ chunkSize: options.chunkSize,
39
+ windowBits: options.windowBits,
40
+ memLevel: options.memLevel,
41
+ strategy: options.strategy,
42
+ dictionary: options.dictionary
43
+ });
44
}
45
46
this.regExp = options.regExp;
0 commit comments