UNPKG

2.35 kBJSONView Raw
1{
2 "title": "Responsive Loader options",
3 "type": "object",
4 "properties": {
5 "size": {
6 "anyOf": [{ "type": "string" }, { "type": "number" }]
7 },
8 "sizes": {
9 "type": "array",
10 "items": {
11 "description": "Array of strings or numbers",
12 "anyOf": [
13 {
14 "type": "string"
15 },
16 {
17 "type": "number"
18 }
19 ]
20 }
21 },
22 "min": {
23 "anyOf": [{ "type": "string" }, { "type": "number" }]
24 },
25 "max": {
26 "anyOf": [{ "type": "string" }, { "type": "number" }]
27 },
28 "steps": {
29 "anyOf": [{ "type": "string" }, { "type": "number" }]
30 },
31 "name": {
32 "type": "string"
33 },
34 "outputPath": {
35 "anyOf": [{ "type": "string" }, { "instanceof": "Function" }]
36 },
37 "publicPath": {
38 "anyOf": [{ "type": "string" }, { "instanceof": "Function" }]
39 },
40 "context": { "type": "string" },
41 "placeholderSize": {
42 "anyOf": [{ "type": "string" }, { "type": "number" }]
43 },
44 "quality": { "anyOf": [{ "type": "string" }, { "type": "number" }] },
45 "background": { "anyOf": [{ "type": "string" }, { "type": "number" }] },
46 "rotate": {
47 "anyOf": [{ "type": "string" }, { "type": "number" }]
48 },
49 "progressive": { "type": "boolean" },
50 "placeholder": { "type": ["string", "boolean"] },
51 "adapter": {
52 "instanceof": "Function"
53 },
54 "format": { "type": "string", "enum": ["png", "jpg", "jpeg", "webp", "avif"] },
55 "disable": { "type": "boolean" },
56 "esModule": {
57 "description": "By default, responsive-loader generates JS modules that don't use the ES modules syntax.",
58 "type": "boolean"
59 },
60 "emitFile": {
61 "description": "Enables/Disables emit files.",
62 "type": "boolean"
63 },
64 "cacheDirectory": { "anyOf": [{ "type": "string" }, { "type": "boolean" }] },
65 "cacheIdentifier": { "type": "string" },
66 "cacheCompression": { "type": "boolean" }
67 },
68 "additionalProperties": true
69}