/
options.json
82 lines (82 loc) · 2.22 KB
/
options.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"title": "HTML Loader options",
"type": "object",
"definitions": {
"Source": {
"anyOf": [
{
"type": "object",
"properties": {
"tag": {
"type": "string",
"minLength": 1
},
"attribute": {
"type": "string",
"minLength": 1
},
"type": {
"enum": ["src", "srcset"]
},
"filter": {
"instanceof": "Function"
}
},
"required": ["attribute", "type"],
"additionalProperties": false
},
{
"enum": ["..."]
}
]
},
"SourcesList": {
"type": "array",
"items": {
"$ref": "#/definitions/Source"
},
"minItems": 1,
"uniqueItems": true
}
},
"properties": {
"preprocessor": {
"instanceof": "Function",
"description": "Allows pre-processing of content before handling.",
"link": "https://github.com/webpack-contrib/html-loader#preprocessor"
},
"sources": {
"anyOf": [
{ "type": "boolean" },
{
"type": "object",
"properties": {
"list": {
"$ref": "#/definitions/SourcesList"
},
"urlFilter": {
"instanceof": "Function"
},
"scriptingEnabled": {
"type": "boolean"
}
},
"additionalProperties": false
}
],
"description": "By default every loadable attributes (for example - <img src='image.png'>) is imported (const img = require('./image.png'). You may need to specify loaders for images in your configuration.",
"link": "https://github.com/webpack-contrib/html-loader#sources"
},
"minimize": {
"anyOf": [{ "type": "boolean" }, { "type": "object" }],
"description": "Tell html-loader to minimize HTML.",
"link": "https://github.com/webpack-contrib/html-loader#minimize"
},
"esModule": {
"type": "boolean",
"description": "Enable or disable ES modules syntax.",
"link": "https://github.com/webpack-contrib/html-loader#esmodule"
}
},
"additionalProperties": false
}