Skip to content

Commit

Permalink
Update docs according to feature introduced in latest webpack.
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneHlushko committed Jan 9, 2018
1 parent 5c131d7 commit 1e7c986
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/content/configuration/output.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,16 @@ The prefix length of the hash digest to use, defaults to `20`.

## `output.hashFunction`

`string|function`

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.
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.

``` js
hashFunction: require('metrohash').MetroHash64
```

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

## `output.hashSalt`

Expand Down

0 comments on commit 1e7c986

Please sign in to comment.