Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 083a6c8

Browse files
patrickhpanmichael-ciniawsky
authored andcommitted
docs(README): add custom [contenthash] formats (#566)
1 parent d7a75fc commit 083a6c8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ new ExtractTextPlugin(options: filename | object)
7777
* `[name]` name of the chunk
7878
* `[id]` number of the chunk
7979
* `[contenthash]` hash of the content of the extracted file
80+
* `[<hashType>:contenthash:<digestType>:<length>]` optionally you can configure
81+
* other `hashType`s, e.g. `sha1`, `md5`, `sha256`, `sha512`
82+
* other `digestType`s, e.g. `hex`, `base26`, `base32`, `base36`, `base49`, `base52`, `base58`, `base62`, `base64`
83+
* and `length`, the length of the hash in chars
8084

8185
> :warning: `ExtractTextPlugin` generates a file **per entry**, so you must use `[name]`, `[id]` or `[contenthash]` when using multiple entries.
8286

0 commit comments

Comments
 (0)