You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,11 +20,19 @@ module.exports = {
20
20
Arguments:
21
21
22
22
*`asset`: The target asset name. `{file}` is replaced with the original asset. Defaults to `"{file}.gz"`.
23
-
*`algorithm`: Can be a `function(buf, callback)` or a string. For a string the algorithm is tacken from `zlib`. Defaults to `"gzip"`.
23
+
*`algorithm`: Can be a `function(buf, callback)` or a string. For a string the algorithm is taken from `zlib` (or zopfli for `zopfli`). Defaults to `"gzip"`.
24
24
*`regExp`: All assets matching this RegExp are processed. Defaults to every asset.
25
25
*`threshold`: Only assets bigger than this size are processed. In bytes. Defaults to `0`.
26
26
*`minRatio`: Only assets that compress better that this ratio are processed. Defaults to `0.8`.
27
27
28
+
Option Arguments for Zopfli (see [node-zopfli](https://github.com/pierreinglebert/node-zopfli#options) doc for details):
29
+
* verbose: Default: false,
30
+
* verbose_more: Default: false,
31
+
* numiterations: Default: 15,
32
+
* blocksplitting: Default: true,
33
+
* blocksplittinglast: Default: false,
34
+
* blocksplittingmax: Default: 15
35
+
28
36
## License
29
37
30
38
MIT (http://www.opensource.org/licenses/mit-license.php)
0 commit comments