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 | "filter": {
|
68 | "description": "Allows filtering of images for optimization.",
|
69 | "instanceof": "Function"
|
70 | },
|
71 | "severityError": {
|
72 | "description": "Allows to choose how errors are displayed.",
|
73 | "anyOf": [
|
74 | {
|
75 | "type": "boolean"
|
76 | },
|
77 | {
|
78 | "type": "string"
|
79 | }
|
80 | ]
|
81 | },
|
82 | "loader": {
|
83 | "description": "Automatically adding `imagemin-loader` (require for minification images using in `url-loader`, `svg-url-loader` or other).",
|
84 | "type": "boolean"
|
85 | },
|
86 | "maxConcurrency": {
|
87 | "description": "Maximum number of concurrency optimization processes in one time.",
|
88 | "type": "number"
|
89 | },
|
90 | "filename": {
|
91 | "type": "string"
|
92 | },
|
93 | "deleteOriginalAssets": {
|
94 | "type": "boolean"
|
95 | }
|
96 | }
|
97 | }
|