Skip to content

Commit b4d4fdb

Browse files
committed
Update docs according to feature introduced in latest webpack.
1 parent 549cd38 commit b4d4fdb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/content/configuration/output.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,16 @@ The prefix length of the hash digest to use, defaults to `20`.
236236

237237
## `output.hashFunction`
238238

239+
`string|function`
240+
239241
The hashing algorithm to use, defaults to `'md5'`. All functions from Node.JS' [`crypto.createHash`](https://nodejs.org/api/crypto.html#crypto_crypto_createhash_algorithm) are supported.
242+
Since v4.0.0-alpha2 `hashFunction` can now be a constructor to a custom hash function. You can provide a non-crypto hash function for performance reasons.
243+
244+
``` js
245+
hashFunction: require('metrohash').MetroHash64
246+
```
240247

248+
Make sure that hashing function will have `update` and `digest` methods available.
241249

242250
## `output.hashSalt`
243251

0 commit comments

Comments
 (0)