UNPKG

2.75 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 "StringPattern": {
36 "type": "string",
37 "minLength": 1
38 }
39 },
40 "title": "JsonMinimizerWebpackPluginOptions",
41 "type": "object",
42 "properties": {
43 "test": {
44 "description": "Include all modules that pass test assertion.",
45 "link": "https://github.com/webpack-contrib/json-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/json-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/json-minimizer-webpack-plugin#exclude",
64 "oneOf": [
65 {
66 "$ref": "#/definitions/Rules"
67 }
68 ]
69 },
70 "minimizerOptions": {
71 "description": "Options for `jsonMinimizerOptions`.",
72 "link": "https://github.com/webpack-contrib/json-minimizer-webpack-plugin#minimizeroptions",
73 "additionalProperties": false,
74 "type": "object",
75 "properties": {
76 "replacer": {
77 "anyOf": [
78 {
79 "type": "null"
80 },
81 {
82 "instanceof": "Function"
83 },
84 {
85 "type": "array",
86 "items": {
87 "anyOf": [
88 {
89 "$ref": "#/definitions/StringPattern"
90 },
91 {
92 "type": "number"
93 }
94 ]
95 }
96 }
97 ]
98 },
99 "space": {
100 "anyOf": [
101 {
102 "type": "null"
103 },
104 {
105 "$ref": "#/definitions/StringPattern"
106 },
107 {
108 "type": "number"
109 }
110 ]
111 }
112 }
113 }
114 },
115 "additionalProperties": false
116}