File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -19,12 +19,12 @@ function CompressionPlugin(options) {
19
19
}
20
20
this . algorithm = function ( content , fn ) {
21
21
zopfli . gzip ( content , {
22
- verbose : options . verbose ? options . verbose : false ,
23
- verbose_more : options . verbose ? options . verbose : false ,
24
- numiterations : options . verbose ? options . verbose : 15 ,
25
- blocksplitting : options . verbose ? options . verbose : true ,
26
- blocksplittinglast : options . verbose ? options . verbose : false ,
27
- blocksplittingmax : options . verbose ? options . verbose : 15
22
+ verbose : options . hasOwnProperty ( ' verbose' ) ? options . verbose : false ,
23
+ verbose_more : options . hasOwnProperty ( 'verbose_more' ) ? options . verbose_more : false ,
24
+ numiterations : options . numiterations ? options . numiterations : 15 ,
25
+ blocksplitting : options . hasOwnProperty ( 'blocksplitting' ) ? options . blocksplitting : true ,
26
+ blocksplittinglast : options . hasOwnProperty ( 'blocksplittinglast' ) ? options . blocksplittinglast : false ,
27
+ blocksplittingmax : options . blocksplittingmax ? options . blocksplittingmax : 15
28
28
} , fn ) ;
29
29
} ;
30
30
} else {
You can’t perform that action at this time.
0 commit comments