UNPKG

2.34 kBJSONView Raw
1{
2 "definitions": {
3 "Rule": {
4 "description": "Filtering rule as regex or string.",
5 "anyOf": [
6 {
7 "instanceof": "RegExp",
8 "tsType": "RegExp"
9 },
10 {
11 "type": "string",
12 "minLength": 1
13 }
14 ]
15 },
16 "Rules": {
17 "description": "Filtering rules.",
18 "anyOf": [
19 {
20 "type": "array",
21 "items": {
22 "description": "A rule condition.",
23 "oneOf": [
24 {
25 "$ref": "#/definitions/Rule"
26 }
27 ]
28 }
29 },
30 {
31 "$ref": "#/definitions/Rule"
32 }
33 ]
34 },
35 "MinimizerOptions": {
36 "additionalProperties": true,
37 "type": "object"
38 }
39 },
40 "title": "HtmlMinimizerWebpackPluginOptions",
41 "type": "object",
42 "properties": {
43 "test": {
44 "description": "Include all modules that pass test assertion.",
45 "oneOf": [
46 {
47 "$ref": "#/definitions/Rules"
48 }
49 ]
50 },
51 "include": {
52 "description": "Include all modules matching any of these conditions.",
53 "oneOf": [
54 {
55 "$ref": "#/definitions/Rules"
56 }
57 ]
58 },
59 "exclude": {
60 "description": "Exclude all modules matching any of these conditions.",
61 "oneOf": [
62 {
63 "$ref": "#/definitions/Rules"
64 }
65 ]
66 },
67 "minimizerOptions": {
68 "description": "Options for `htmlMinimizerOptions`.",
69 "anyOf": [
70 {
71 "$ref": "#/definitions/MinimizerOptions"
72 },
73 {
74 "type": "array",
75 "minItems": 1,
76 "items": {
77 "$ref": "#/definitions/MinimizerOptions"
78 }
79 }
80 ]
81 },
82 "parallel": {
83 "description": "Use multi-process parallel running to improve the build speed.",
84 "anyOf": [
85 {
86 "type": "boolean"
87 },
88 {
89 "type": "integer"
90 }
91 ]
92 },
93 "minify": {
94 "description": "Allows you to override default minify function.",
95 "anyOf": [
96 {
97 "instanceof": "Function"
98 },
99 {
100 "type": "array",
101 "minItems": 1,
102 "items": {
103 "instanceof": "Function"
104 }
105 }
106 ]
107 }
108 },
109 "additionalProperties": false
110}