source: frontend/node_modules/terser-webpack-plugin/dist/options.json

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 5.4 KB
Line 
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": "MinimizerPluginOptions",
37 "type": "object",
38 "additionalProperties": false,
39 "properties": {
40 "test": {
41 "description": "Include all modules that pass test assertion.",
42 "link": "https://github.com/webpack/minimizer-webpack-plugin#test",
43 "oneOf": [
44 {
45 "$ref": "#/definitions/Rules"
46 }
47 ]
48 },
49 "include": {
50 "description": "Include all modules matching any of these conditions.",
51 "link": "https://github.com/webpack/minimizer-webpack-plugin#include",
52 "oneOf": [
53 {
54 "$ref": "#/definitions/Rules"
55 }
56 ]
57 },
58 "exclude": {
59 "description": "Exclude all modules matching any of these conditions.",
60 "link": "https://github.com/webpack/minimizer-webpack-plugin#exclude",
61 "oneOf": [
62 {
63 "$ref": "#/definitions/Rules"
64 }
65 ]
66 },
67 "minimizerOptions": {
68 "description": "Options for `terser` (by default) or custom `minify` function.",
69 "link": "https://github.com/webpack/minimizer-webpack-plugin#minimizeroptions",
70 "anyOf": [
71 {
72 "additionalProperties": true,
73 "type": "object"
74 },
75 {
76 "type": "array",
77 "minItems": 1,
78 "items": {
79 "additionalProperties": true,
80 "type": "object"
81 }
82 }
83 ]
84 },
85 "terserOptions": {
86 "description": "Deprecated alias for `minimizerOptions`. Options for `terser` (by default) or custom `minify` function.",
87 "link": "https://github.com/webpack/minimizer-webpack-plugin#terseroptions",
88 "anyOf": [
89 {
90 "additionalProperties": true,
91 "type": "object"
92 },
93 {
94 "type": "array",
95 "minItems": 1,
96 "items": {
97 "additionalProperties": true,
98 "type": "object"
99 }
100 }
101 ]
102 },
103 "extractComments": {
104 "description": "Whether comments shall be extracted to a separate file.",
105 "link": "https://github.com/webpack/minimizer-webpack-plugin#extractcomments",
106 "anyOf": [
107 {
108 "type": "boolean"
109 },
110 {
111 "type": "string",
112 "minLength": 1
113 },
114 {
115 "instanceof": "RegExp"
116 },
117 {
118 "instanceof": "Function"
119 },
120 {
121 "additionalProperties": false,
122 "properties": {
123 "condition": {
124 "anyOf": [
125 {
126 "type": "boolean"
127 },
128 {
129 "type": "string",
130 "minLength": 1
131 },
132 {
133 "instanceof": "RegExp"
134 },
135 {
136 "instanceof": "Function"
137 }
138 ],
139 "description": "Condition what comments you need extract.",
140 "link": "https://github.com/webpack/minimizer-webpack-plugin#condition"
141 },
142 "filename": {
143 "anyOf": [
144 {
145 "type": "string",
146 "minLength": 1
147 },
148 {
149 "instanceof": "Function"
150 }
151 ],
152 "description": "The file where the extracted comments will be stored. Default is to append the suffix .LICENSE.txt to the original filename.",
153 "link": "https://github.com/webpack/minimizer-webpack-plugin#filename"
154 },
155 "banner": {
156 "anyOf": [
157 {
158 "type": "boolean"
159 },
160 {
161 "type": "string",
162 "minLength": 1
163 },
164 {
165 "instanceof": "Function"
166 }
167 ],
168 "description": "The banner text that points to the extracted file and will be added on top of the original file",
169 "link": "https://github.com/webpack/minimizer-webpack-plugin#banner"
170 }
171 },
172 "type": "object"
173 }
174 ]
175 },
176 "parallel": {
177 "description": "Use multi-process parallel running to improve the build speed.",
178 "link": "https://github.com/webpack/minimizer-webpack-plugin#parallel",
179 "anyOf": [
180 {
181 "type": "boolean"
182 },
183 {
184 "type": "integer"
185 }
186 ]
187 },
188 "minify": {
189 "description": "Allows you to override default minify function.",
190 "link": "https://github.com/webpack/minimizer-webpack-plugin#number",
191 "anyOf": [
192 {
193 "instanceof": "Function"
194 },
195 {
196 "type": "array",
197 "minItems": 1,
198 "items": {
199 "instanceof": "Function"
200 }
201 }
202 ]
203 }
204 }
205}
Note: See TracBrowser for help on using the repository browser.