@@ -5,7 +5,7 @@ exports[`validate options should throw an error on the "algorithm" option with "
5
5
- options.algorithm should be one of these:
6
6
string | function
7
7
-> The compression algorithm/function.
8
- -> Read more at https://webpack.js.org/plugins /compression-webpack-plugin/#algorithm
8
+ -> Read more at https://github.com/webpack-contrib /compression-webpack-plugin/#algorithm
9
9
Details:
10
10
* options.algorithm should be a string.
11
11
* options.algorithm should be an instance of function."
@@ -16,15 +16,15 @@ exports[`validate options should throw an error on the "compressionOptions" opti
16
16
- options.compressionOptions should be an object:
17
17
object { … }
18
18
-> Compression options for \` algorithm\` .
19
- -> Read more at https://webpack.js.org/plugins /compression-webpack-plugin/#compressionoptions"
19
+ -> Read more at https://github.com/webpack-contrib /compression-webpack-plugin/#compressionoptions"
20
20
` ;
21
21
22
22
exports [` validate options should throw an error on the "deleteOriginalAssets" option with "true" value 1` ] = `
23
23
"Invalid options object. Compression Plugin has been initialized using an options object that does not match the API schema.
24
24
- options.deleteOriginalAssets should be one of these:
25
25
boolean | \\ "keep-source-map\\ "
26
26
-> Whether to delete the original assets or not.
27
- -> Read more at https://webpack.js.org/plugins /compression-webpack-plugin/#deleteoriginalassets
27
+ -> Read more at https://github.com/webpack-contrib /compression-webpack-plugin/#deleteoriginalassets
28
28
Details:
29
29
* options.deleteOriginalAssets should be a boolean.
30
30
* options.deleteOriginalAssets should be \\ "keep-source-map\\ "."
@@ -35,7 +35,7 @@ exports[`validate options should throw an error on the "deleteOriginalAssets" op
35
35
- options.deleteOriginalAssets should be one of these:
36
36
boolean | \\ "keep-source-map\\ "
37
37
-> Whether to delete the original assets or not.
38
- -> Read more at https://webpack.js.org/plugins /compression-webpack-plugin/#deleteoriginalassets
38
+ -> Read more at https://github.com/webpack-contrib /compression-webpack-plugin/#deleteoriginalassets
39
39
Details:
40
40
* options.deleteOriginalAssets should be a boolean.
41
41
* options.deleteOriginalAssets should be \\ "keep-source-map\\ "."
@@ -46,7 +46,7 @@ exports[`validate options should throw an error on the "exclude" option with "[{
46
46
- options.exclude should be one of these:
47
47
[RegExp | non-empty string, ...] | RegExp | non-empty string
48
48
-> Filtering rules.
49
- -> Read more at https://webpack.js.org/plugins /compression-webpack-plugin/#exclude
49
+ -> Read more at https://github.com/webpack-contrib /compression-webpack-plugin/#exclude
50
50
Details:
51
51
* options.exclude[2] should be one of these:
52
52
RegExp | non-empty string
@@ -61,7 +61,7 @@ exports[`validate options should throw an error on the "exclude" option with "[t
61
61
- options.exclude should be one of these:
62
62
[RegExp | non-empty string, ...] | RegExp | non-empty string
63
63
-> Filtering rules.
64
- -> Read more at https://webpack.js.org/plugins /compression-webpack-plugin/#exclude
64
+ -> Read more at https://github.com/webpack-contrib /compression-webpack-plugin/#exclude
65
65
Details:
66
66
* options.exclude[0] should be one of these:
67
67
RegExp | non-empty string
@@ -76,7 +76,7 @@ exports[`validate options should throw an error on the "exclude" option with "tr
76
76
- options.exclude should be one of these:
77
77
[RegExp | non-empty string, ...] | RegExp | non-empty string
78
78
-> Filtering rules.
79
- -> Read more at https://webpack.js.org/plugins /compression-webpack-plugin/#exclude
79
+ -> Read more at https://github.com/webpack-contrib /compression-webpack-plugin/#exclude
80
80
Details:
81
81
* options.exclude should be an array:
82
82
[RegExp | non-empty string, ...]
@@ -93,7 +93,7 @@ exports[`validate options should throw an error on the "filename" option with "t
93
93
- options.filename should be one of these:
94
94
string | function
95
95
-> The target asset filename.
96
- -> Read more at https://webpack.js.org/plugins /compression-webpack-plugin/#filename
96
+ -> Read more at https://github.com/webpack-contrib /compression-webpack-plugin/#filename
97
97
Details:
98
98
* options.filename should be a string.
99
99
* options.filename should be an instance of function."
@@ -104,7 +104,7 @@ exports[`validate options should throw an error on the "include" option with "[{
104
104
- options.include should be one of these:
105
105
[RegExp | non-empty string, ...] | RegExp | non-empty string
106
106
-> Filtering rules.
107
- -> Read more at https://webpack.js.org/plugins /compression-webpack-plugin/#include
107
+ -> Read more at https://github.com/webpack-contrib /compression-webpack-plugin/#include
108
108
Details:
109
109
* options.include[2] should be one of these:
110
110
RegExp | non-empty string
@@ -119,7 +119,7 @@ exports[`validate options should throw an error on the "include" option with "[t
119
119
- options.include should be one of these:
120
120
[RegExp | non-empty string, ...] | RegExp | non-empty string
121
121
-> Filtering rules.
122
- -> Read more at https://webpack.js.org/plugins /compression-webpack-plugin/#include
122
+ -> Read more at https://github.com/webpack-contrib /compression-webpack-plugin/#include
123
123
Details:
124
124
* options.include[0] should be one of these:
125
125
RegExp | non-empty string
@@ -134,7 +134,7 @@ exports[`validate options should throw an error on the "include" option with "tr
134
134
- options.include should be one of these:
135
135
[RegExp | non-empty string, ...] | RegExp | non-empty string
136
136
-> Filtering rules.
137
- -> Read more at https://webpack.js.org/plugins /compression-webpack-plugin/#include
137
+ -> Read more at https://github.com/webpack-contrib /compression-webpack-plugin/#include
138
138
Details:
139
139
* options.include should be an array:
140
140
[RegExp | non-empty string, ...]
@@ -150,15 +150,15 @@ exports[`validate options should throw an error on the "minRatio" option with "0
150
150
"Invalid options object. Compression Plugin has been initialized using an options object that does not match the API schema.
151
151
- options.minRatio should be a number.
152
152
-> Only assets that compress better than this ratio are processed (\` minRatio = Compressed Size / Original Size\` ).
153
- -> Read more at https://webpack.js.org/plugins /compression-webpack-plugin/#minratio"
153
+ -> Read more at https://github.com/webpack-contrib /compression-webpack-plugin/#minratio"
154
154
` ;
155
155
156
156
exports [` validate options should throw an error on the "test" option with "[{ } ,"foo",true]" value 1` ] = `
157
157
"Invalid options object. Compression Plugin has been initialized using an options object that does not match the API schema.
158
158
- options.test should be one of these:
159
159
[RegExp | non-empty string, ...] | RegExp | non-empty string
160
160
-> Filtering rules.
161
- -> Read more at https://webpack.js.org/plugins /compression-webpack-plugin/#test
161
+ -> Read more at https://github.com/webpack-contrib /compression-webpack-plugin/#test
162
162
Details:
163
163
* options.test[2] should be one of these:
164
164
RegExp | non-empty string
@@ -173,7 +173,7 @@ exports[`validate options should throw an error on the "test" option with "[true
173
173
- options.test should be one of these:
174
174
[RegExp | non-empty string, ...] | RegExp | non-empty string
175
175
-> Filtering rules.
176
- -> Read more at https://webpack.js.org/plugins /compression-webpack-plugin/#test
176
+ -> Read more at https://github.com/webpack-contrib /compression-webpack-plugin/#test
177
177
Details:
178
178
* options.test[0] should be one of these:
179
179
RegExp | non-empty string
@@ -188,7 +188,7 @@ exports[`validate options should throw an error on the "test" option with "true"
188
188
- options.test should be one of these:
189
189
[RegExp | non-empty string, ...] | RegExp | non-empty string
190
190
-> Filtering rules.
191
- -> Read more at https://webpack.js.org/plugins /compression-webpack-plugin/#test
191
+ -> Read more at https://github.com/webpack-contrib /compression-webpack-plugin/#test
192
192
Details:
193
193
* options.test should be an array:
194
194
[RegExp | non-empty string, ...]
@@ -204,7 +204,7 @@ exports[`validate options should throw an error on the "threshold" option with "
204
204
"Invalid options object. Compression Plugin has been initialized using an options object that does not match the API schema.
205
205
- options.threshold should be a number.
206
206
-> Only assets bigger than this size are processed. In bytes.
207
- -> Read more at https://webpack.js.org/plugins /compression-webpack-plugin/#threshold"
207
+ -> Read more at https://github.com/webpack-contrib /compression-webpack-plugin/#threshold"
208
208
` ;
209
209
210
210
exports [` validate options should throw an error on the "unknown" option with "/test/" value 1` ] = `
0 commit comments