From b4d4fdbe448f2da4c3d36bb828bbf49cabdb5e38 Mon Sep 17 00:00:00 2001 From: EugeneHlushko Date: Sun, 24 Dec 2017 17:15:51 +0200 Subject: [PATCH] Update docs according to feature introduced in latest webpack. --- src/content/configuration/output.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/content/configuration/output.md b/src/content/configuration/output.md index 1c6cc9349bef..0a408861fa5e 100644 --- a/src/content/configuration/output.md +++ b/src/content/configuration/output.md @@ -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`