1 | {
|
2 | "title": "Webpack Assets Manifest options schema",
|
3 | "description": "Webpack Assets Manifest options",
|
4 | "type": "object",
|
5 | "additionalProperties": false,
|
6 | "properties": {
|
7 | "enabled": {
|
8 | "type": "boolean",
|
9 | "default": true
|
10 | },
|
11 | "assets": {
|
12 | "type": "object",
|
13 | "default": {}
|
14 | },
|
15 | "output": {
|
16 | "type": "string",
|
17 | "default": "manifest.json"
|
18 | },
|
19 | "replacer": {
|
20 | "default": null,
|
21 | "oneOf": [
|
22 | {
|
23 | "$ref": "#/definitions/functionOrNull"
|
24 | },
|
25 | {
|
26 | "type": "array"
|
27 | }
|
28 | ]
|
29 | },
|
30 | "space": {
|
31 | "oneOf": [
|
32 | {
|
33 | "type": "integer",
|
34 | "multipleOf": 1.0,
|
35 | "minimum": 0
|
36 | },
|
37 | {
|
38 | "type": "string",
|
39 | "minLength": 1
|
40 | }
|
41 | ],
|
42 | "default": 2
|
43 | },
|
44 | "writeToDisk": {
|
45 | "oneOf": [
|
46 | {
|
47 | "type": "boolean"
|
48 | },
|
49 | {
|
50 | "const": "auto"
|
51 | }
|
52 | ],
|
53 | "default": "auto"
|
54 | },
|
55 | "fileExtRegex": {
|
56 | "oneOf": [
|
57 | {
|
58 | "instanceof": "RegExp"
|
59 | },
|
60 | {
|
61 | "type": "null"
|
62 | },
|
63 | {
|
64 | "const": false
|
65 | }
|
66 | ]
|
67 | },
|
68 | "sortManifest": {
|
69 | "default": true,
|
70 | "oneOf": [
|
71 | {
|
72 | "type": "boolean"
|
73 | },
|
74 | {
|
75 | "instanceof": "Function"
|
76 | }
|
77 | ]
|
78 | },
|
79 | "merge": {
|
80 | "default": false,
|
81 | "oneOf": [
|
82 | {
|
83 | "type": "boolean"
|
84 | },
|
85 | {
|
86 | "const": "customize"
|
87 | }
|
88 | ]
|
89 | },
|
90 | "publicPath": {
|
91 | "default": null,
|
92 | "oneOf": [
|
93 | {
|
94 | "type": "string"
|
95 | },
|
96 | {
|
97 | "type": "boolean"
|
98 | },
|
99 | {
|
100 | "type": "null"
|
101 | },
|
102 | {
|
103 | "instanceof": "Function"
|
104 | }
|
105 | ]
|
106 | },
|
107 | "contextRelativeKeys": {
|
108 | "type": "boolean",
|
109 | "default": false
|
110 | },
|
111 | "apply": {
|
112 | "$ref": "#/definitions/functionOrNull"
|
113 | },
|
114 | "customize": {
|
115 | "$ref": "#/definitions/functionOrNull"
|
116 | },
|
117 | "transform": {
|
118 | "$ref": "#/definitions/functionOrNull"
|
119 | },
|
120 | "done": {
|
121 | "$ref": "#/definitions/functionOrNull"
|
122 | },
|
123 | "entrypoints": {
|
124 | "type": "boolean",
|
125 | "default": false
|
126 | },
|
127 | "entrypointsKey": {
|
128 | "default": "entrypoints",
|
129 | "oneOf": [
|
130 | {
|
131 | "type": "string"
|
132 | },
|
133 | {
|
134 | "const": false
|
135 | }
|
136 | ]
|
137 | },
|
138 | "entrypointsUseAssets": {
|
139 | "type": "boolean",
|
140 | "default": false
|
141 | },
|
142 | "integrity": {
|
143 | "type": "boolean",
|
144 | "default": false
|
145 | },
|
146 | "integrityHashes": {
|
147 | "type": "array",
|
148 | "items": {
|
149 | "type": "string"
|
150 | },
|
151 | "default": [
|
152 | "sha256",
|
153 | "sha384",
|
154 | "sha512"
|
155 | ]
|
156 | },
|
157 | "integrityPropertyName": {
|
158 | "type": "string",
|
159 | "minLength": 1,
|
160 | "default": "integrity"
|
161 | }
|
162 | },
|
163 | "definitions": {
|
164 | "functionOrNull": {
|
165 | "default": null,
|
166 | "oneOf": [
|
167 | {
|
168 | "instanceof": "Function"
|
169 | },
|
170 | {
|
171 | "type": "null"
|
172 | }
|
173 | ]
|
174 | }
|
175 | }
|
176 | }
|