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
+21-9
Original file line number
Diff line number
Diff line change
@@ -37,15 +37,16 @@ module.exports = {
37
37
38
38
|Name|Type|Default|Description|
39
39
|:--:|:--:|:-----:|:----------|
40
-
|**`test`**|`{RegExp\|Array<RegExp>}`|`.`|All assets matching this `{RegExp\|Array<RegExp>}` are processed|
41
-
|**`include`**|`{RegExp\|Array<RegExp>}`|`undefined`|Files to `include`|
42
-
|**`exclude`**|`{RegExp\|Array<RegExp>}`|`undefined`|Files to `exclude`|
43
-
|**`asset`**|`{String}`|`[path].gz[query]`|The target asset name. `[file]` is replaced with the original asset. `[path]` is replaced with the path of the original asset and `[query]` with the query|
44
-
|**`filename`**|`{Function}`|`false`|A `{Function}``(asset) => asset` which receives the asset name (after processing `asset` option) and returns the new asset name|
45
-
|**`algorithm`**|`{String\|Function}`|`gzip`|Can be `(buffer, cb) => cb(buffer)` or if a `{String}` is used the algorithm is taken from `zlib`|
46
-
|**`threshold`**|`{Number}`|`0`|Only assets bigger than this size are processed. In bytes.|
47
-
|**`minRatio`**|`{Number}`|`0.8`|Only assets that compress better than this ratio are processed|
48
-
|**`deleteOriginalAssets`**|`{Boolean}`|`false`|Whether to delete the original assets or not|
40
+
|**[`test`](#test)**|`{RegExp\|Array<RegExp>}`|`.`|All assets matching this `{RegExp\|Array<RegExp>}` are processed|
41
+
|**[`include`](#include)**|`{RegExp\|Array<RegExp>}`|`undefined`|Files to `include`|
42
+
|**[`exclude`](#exclude)**|`{RegExp\|Array<RegExp>}`|`undefined`|Files to `exclude`|
|**[`asset`](#asset)**|`{String}`|`[path].gz[query]`|The target asset name. `[file]` is replaced with the original asset. `[path]` is replaced with the path of the original asset and `[query]` with the query|
45
+
|**[`filename`](#filename)**|`{Function}`|`false`|A `{Function}``(asset) => asset` which receives the asset name (after processing `asset` option) and returns the new asset name|
46
+
|**[`algorithm`](#algorithm)**|`{String\|Function}`|`gzip`|Can be `(buffer, cb) => cb(buffer)` or if a `{String}` is used the algorithm is taken from `zlib`|
47
+
|**[`threshold`](#threshold)**|`{Number}`|`0`|Only assets bigger than this size are processed. In bytes.|
48
+
|**[`minRatio`](#minratio)**|`{Number}`|`0.8`|Only assets that compress better than this ratio are processed|
49
+
|**[`deleteOriginalAssets`](#deleteoriginalassets)**|`{Boolean}`|`false`|Whether to delete the original assets or not|
0 commit comments