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

Commit

Permalink
docs(README): add custom [contenthash] formats (#566)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhpan authored and michael-ciniawsky committed Jul 17, 2017
1 parent d7a75fc commit 083a6c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
* `[<hashType>:contenthash:<digestType>:<length>]` 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.
Expand Down

0 comments on commit 083a6c8

Please sign in to comment.