UNPKG

2.89 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 "link": "https://github.com/webpack-contrib/html-minimizer-webpack-plugin#test",
46 "oneOf": [
47 {
48 "$ref": "#/definitions/Rules"
49 }
50 ]
51 },
52 "include": {
53 "description": "Include all modules matching any of these conditions.",
54 "link": "https://github.com/webpack-contrib/html-minimizer-webpack-plugin#include",
55 "oneOf": [
56 {
57 "$ref": "#/definitions/Rules"
58 }
59 ]
60 },
61 "exclude": {
62 "description": "Exclude all modules matching any of these conditions.",
63 "link": "https://github.com/webpack-contrib/html-minimizer-webpack-plugin#exclude",
64 "oneOf": [
65 {
66 "$ref": "#/definitions/Rules"
67 }
68 ]
69 },
70 "parallel": {
71 "description": "Use multi-process parallel running to improve the build speed.",
72 "link": "https://github.com/webpack-contrib/html-minimizer-webpack-plugin#parallel",
73 "anyOf": [
74 {
75 "type": "boolean"
76 },
77 {
78 "type": "integer"
79 }
80 ]
81 },
82 "minify": {
83 "description": "Allows you to override default minify function.",
84 "link": "https://github.com/webpack-contrib/html-minimizer-webpack-plugin#minify",
85 "anyOf": [
86 {
87 "instanceof": "Function"
88 },
89 {
90 "type": "array",
91 "minItems": 1,
92 "items": {
93 "instanceof": "Function"
94 }
95 }
96 ]
97 },
98 "minimizerOptions": {
99 "description": "Options for `htmlMinimizerOptions`.",
100 "link": "https://github.com/webpack-contrib/html-minimizer-webpack-plugin#minimizeroptions",
101 "anyOf": [
102 {
103 "$ref": "#/definitions/MinimizerOptions"
104 },
105 {
106 "type": "array",
107 "minItems": 1,
108 "items": {
109 "$ref": "#/definitions/MinimizerOptions"
110 }
111 }
112 ]
113 }
114 },
115 "additionalProperties": false
116}