From cdfcb7cbbba7c5ae3b5682a77810f07fc12a41ad Mon Sep 17 00:00:00 2001 From: Patrick Pan Date: Fri, 7 Jul 2017 14:48:21 -0700 Subject: [PATCH] Document extra contenthash format features Document the `[:contenthash::]` feature, as it has been in [hash-loader](https://github.com/webpack-contrib/file-loader/blob/master/README.md). --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 56b607b5..c1f29d5a 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,10 @@ new ExtractTextPlugin(options: filename | object) * `[name]` name of the chunk * `[id]` number of the chunk * `[contenthash]` hash of the content of the extracted file +* `[:contenthash::]` optionally you can configure + * other `hashType`s, e.g. `sha1`, `md5`, `sha256`, `sha512` + * other `digestType`s, e.g. `hex`, `base26`, `base32`, `base36`, `base49`, `base52`, `base58`, `base62`, `base64` + * and `length`, the length of the hash in chars > :warning: `ExtractTextPlugin` generates a file **per entry**, so you must use `[name]`, `[id]` or `[contenthash]` when using multiple entries.