UNPKG

2.4 kBJSONView Raw
1{
2 "definitions": {
3 "Rule": {
4 "description": "Filtering rule as regex or string.",
5 "anyOf": [
6 {
7 "instanceof": "RegExp"
8 },
9 {
10 "type": "string",
11 "minLength": 1
12 }
13 ]
14 },
15 "Rules": {
16 "description": "Filtering rules.",
17 "anyOf": [
18 {
19 "type": "array",
20 "items": {
21 "description": "A rule condition.",
22 "oneOf": [
23 {
24 "$ref": "#/definitions/Rule"
25 }
26 ]
27 }
28 },
29 {
30 "$ref": "#/definitions/Rule"
31 }
32 ]
33 }
34 },
35 "type": "object",
36 "additionalProperties": false,
37 "properties": {
38 "test": {
39 "description": "Include all modules that pass test assertion.",
40 "oneOf": [
41 {
42 "$ref": "#/definitions/Rules"
43 }
44 ]
45 },
46 "include": {
47 "description": "Include all modules matching any of these conditions.",
48 "oneOf": [
49 {
50 "$ref": "#/definitions/Rules"
51 }
52 ]
53 },
54 "exclude": {
55 "description": "Exclude all modules matching any of these conditions.",
56 "oneOf": [
57 {
58 "$ref": "#/definitions/Rules"
59 }
60 ]
61 },
62 "minimizerOptions": {
63 "description": "Options for `imageMinimizerOptions`.",
64 "additionalProperties": true,
65 "type": "object"
66 },
67 "cache": {
68 "description": "Enable file caching.",
69 "anyOf": [
70 {
71 "type": "boolean"
72 },
73 {
74 "type": "string"
75 }
76 ]
77 },
78 "filter": {
79 "description": "Allows filtering of images for optimization.",
80 "instanceof": "Function"
81 },
82 "severityError": {
83 "description": "Allows to choose how errors are displayed.",
84 "anyOf": [
85 {
86 "type": "boolean"
87 },
88 {
89 "type": "string"
90 }
91 ]
92 },
93 "loader": {
94 "description": "Automatically adding `imagemin-loader` (require for minification images using in `url-loader`, `svg-url-loader` or other).",
95 "type": "boolean"
96 },
97 "maxConcurrency": {
98 "description": "Maximum number of concurrency optimization processes in one time.",
99 "type": "number"
100 },
101 "filename": {
102 "type": "string"
103 },
104 "deleteOriginalAssets": {
105 "type": "boolean"
106 }
107 }
108}