UNPKG

1.25 kBJSONView Raw
1{
2 "definitions": {
3 "HashFunction": {
4 "description": "Algorithm used for generation the hash (see node.js crypto package).",
5 "anyOf": [
6 {
7 "type": "string",
8 "minLength": 1
9 },
10 {
11 "instanceof": "Function",
12 "tsType": "typeof import('../../lib/util/Hash')"
13 }
14 ]
15 }
16 },
17 "title": "HashedModuleIdsPluginOptions",
18 "type": "object",
19 "additionalProperties": false,
20 "properties": {
21 "context": {
22 "description": "The context directory for creating names.",
23 "type": "string",
24 "absolutePath": true
25 },
26 "hashDigest": {
27 "description": "The encoding to use when generating the hash, defaults to 'base64'. All encodings from Node.JS' hash.digest are supported.",
28 "enum": ["hex", "latin1", "base64"]
29 },
30 "hashDigestLength": {
31 "description": "The prefix length of the hash digest to use, defaults to 4.",
32 "type": "number",
33 "minimum": 1
34 },
35 "hashFunction": {
36 "description": "The hashing algorithm to use, defaults to 'md4'. All functions from Node.JS' crypto.createHash are supported.",
37 "oneOf": [
38 {
39 "$ref": "#/definitions/HashFunction"
40 }
41 ]
42 }
43 }
44}