UNPKG

2.39 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 },
36 "title": "HtmlMinimizerWebpackPluginOptions",
37 "type": "object",
38 "properties": {
39 "test": {
40 "description": "Include all modules that pass test assertion.",
41 "oneOf": [
42 {
43 "$ref": "#/definitions/Rules"
44 }
45 ]
46 },
47 "include": {
48 "description": "Include all modules matching any of these conditions.",
49 "oneOf": [
50 {
51 "$ref": "#/definitions/Rules"
52 }
53 ]
54 },
55 "exclude": {
56 "description": "Exclude all modules matching any of these conditions.",
57 "oneOf": [
58 {
59 "$ref": "#/definitions/Rules"
60 }
61 ]
62 },
63 "minimizerOptions": {
64 "description": "Options for `htmlMinimizerOptions`.",
65 "additionalProperties": true,
66 "type": "object"
67 },
68 "cache": {
69 "description": "Enable file caching. Ignored in webpack 5, for webpack 5 please use https://webpack.js.org/configuration/other-options/#cache.",
70 "anyOf": [
71 {
72 "type": "boolean"
73 },
74 {
75 "type": "string"
76 }
77 ]
78 },
79 "cacheKeys": {
80 "description": "Allows you to override default cache keys. Ignored in webpack 5, for webpack 5 please use https://webpack.js.org/configuration/other-options/#cache.",
81 "instanceof": "Function"
82 },
83 "parallel": {
84 "description": "Use multi-process parallel running to improve the build speed.",
85 "anyOf": [
86 {
87 "type": "boolean"
88 },
89 {
90 "type": "integer"
91 }
92 ]
93 },
94 "minify": {
95 "description": "Allows you to override default minify function.",
96 "instanceof": "Function"
97 }
98 },
99 "additionalProperties": false
100}