Skip to content

Commit 24a6a67

Browse files
committed
refactor: update links
1 parent cdefb02 commit 24a6a67

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

src/options.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"properties": {
3838
"test": {
3939
"description": "Include all assets that pass test assertion.",
40-
"link": "https://webpack.js.org/plugins/compression-webpack-plugin/#test",
40+
"link": "https://github.com/webpack-contrib/compression-webpack-plugin/#test",
4141
"oneOf": [
4242
{
4343
"$ref": "#/definitions/Rules"
@@ -46,7 +46,7 @@
4646
},
4747
"include": {
4848
"description": "Include all assets matching any of these conditions.",
49-
"link": "https://webpack.js.org/plugins/compression-webpack-plugin/#include",
49+
"link": "https://github.com/webpack-contrib/compression-webpack-plugin/#include",
5050
"oneOf": [
5151
{
5252
"$ref": "#/definitions/Rules"
@@ -55,7 +55,7 @@
5555
},
5656
"exclude": {
5757
"description": "Exclude all assets matching any of these conditions.",
58-
"link": "https://webpack.js.org/plugins/compression-webpack-plugin/#exclude",
58+
"link": "https://github.com/webpack-contrib/compression-webpack-plugin/#exclude",
5959
"oneOf": [
6060
{
6161
"$ref": "#/definitions/Rules"
@@ -64,7 +64,7 @@
6464
},
6565
"algorithm": {
6666
"description": "The compression algorithm/function.",
67-
"link": "https://webpack.js.org/plugins/compression-webpack-plugin/#algorithm",
67+
"link": "https://github.com/webpack-contrib/compression-webpack-plugin/#algorithm",
6868
"anyOf": [
6969
{
7070
"type": "string"
@@ -76,23 +76,23 @@
7676
},
7777
"compressionOptions": {
7878
"description": "Compression options for `algorithm`.",
79-
"link": "https://webpack.js.org/plugins/compression-webpack-plugin/#compressionoptions",
79+
"link": "https://github.com/webpack-contrib/compression-webpack-plugin/#compressionoptions",
8080
"additionalProperties": true,
8181
"type": "object"
8282
},
8383
"threshold": {
8484
"description": "Only assets bigger than this size are processed. In bytes.",
85-
"link": "https://webpack.js.org/plugins/compression-webpack-plugin/#threshold",
85+
"link": "https://github.com/webpack-contrib/compression-webpack-plugin/#threshold",
8686
"type": "number"
8787
},
8888
"minRatio": {
8989
"description": "Only assets that compress better than this ratio are processed (`minRatio = Compressed Size / Original Size`).",
90-
"link": "https://webpack.js.org/plugins/compression-webpack-plugin/#minratio",
90+
"link": "https://github.com/webpack-contrib/compression-webpack-plugin/#minratio",
9191
"type": "number"
9292
},
9393
"deleteOriginalAssets": {
9494
"description": "Whether to delete the original assets or not.",
95-
"link": "https://webpack.js.org/plugins/compression-webpack-plugin/#deleteoriginalassets",
95+
"link": "https://github.com/webpack-contrib/compression-webpack-plugin/#deleteoriginalassets",
9696
"anyOf": [
9797
{
9898
"type": "boolean"
@@ -104,7 +104,7 @@
104104
},
105105
"filename": {
106106
"description": "The target asset filename.",
107-
"link": "https://webpack.js.org/plugins/compression-webpack-plugin/#filename",
107+
"link": "https://github.com/webpack-contrib/compression-webpack-plugin/#filename",
108108
"anyOf": [
109109
{
110110
"type": "string"

test/__snapshots__/validate-options.test.js.snap

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ exports[`validate options should throw an error on the "algorithm" option with "
55
- options.algorithm should be one of these:
66
string | function
77
-> 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
99
Details:
1010
* options.algorithm should be a string.
1111
* options.algorithm should be an instance of function."
@@ -16,15 +16,15 @@ exports[`validate options should throw an error on the "compressionOptions" opti
1616
- options.compressionOptions should be an object:
1717
object {}
1818
-> 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"
2020
`;
2121

2222
exports[`validate options should throw an error on the "deleteOriginalAssets" option with "true" value 1`] = `
2323
"Invalid options object. Compression Plugin has been initialized using an options object that does not match the API schema.
2424
- options.deleteOriginalAssets should be one of these:
2525
boolean | \\"keep-source-map\\"
2626
-> 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
2828
Details:
2929
* options.deleteOriginalAssets should be a boolean.
3030
* options.deleteOriginalAssets should be \\"keep-source-map\\"."
@@ -35,7 +35,7 @@ exports[`validate options should throw an error on the "deleteOriginalAssets" op
3535
- options.deleteOriginalAssets should be one of these:
3636
boolean | \\"keep-source-map\\"
3737
-> 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
3939
Details:
4040
* options.deleteOriginalAssets should be a boolean.
4141
* options.deleteOriginalAssets should be \\"keep-source-map\\"."
@@ -46,7 +46,7 @@ exports[`validate options should throw an error on the "exclude" option with "[{
4646
- options.exclude should be one of these:
4747
[RegExp | non-empty string, ...] | RegExp | non-empty string
4848
-> 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
5050
Details:
5151
* options.exclude[2] should be one of these:
5252
RegExp | non-empty string
@@ -61,7 +61,7 @@ exports[`validate options should throw an error on the "exclude" option with "[t
6161
- options.exclude should be one of these:
6262
[RegExp | non-empty string, ...] | RegExp | non-empty string
6363
-> 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
6565
Details:
6666
* options.exclude[0] should be one of these:
6767
RegExp | non-empty string
@@ -76,7 +76,7 @@ exports[`validate options should throw an error on the "exclude" option with "tr
7676
- options.exclude should be one of these:
7777
[RegExp | non-empty string, ...] | RegExp | non-empty string
7878
-> 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
8080
Details:
8181
* options.exclude should be an array:
8282
[RegExp | non-empty string, ...]
@@ -93,7 +93,7 @@ exports[`validate options should throw an error on the "filename" option with "t
9393
- options.filename should be one of these:
9494
string | function
9595
-> 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
9797
Details:
9898
* options.filename should be a string.
9999
* options.filename should be an instance of function."
@@ -104,7 +104,7 @@ exports[`validate options should throw an error on the "include" option with "[{
104104
- options.include should be one of these:
105105
[RegExp | non-empty string, ...] | RegExp | non-empty string
106106
-> 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
108108
Details:
109109
* options.include[2] should be one of these:
110110
RegExp | non-empty string
@@ -119,7 +119,7 @@ exports[`validate options should throw an error on the "include" option with "[t
119119
- options.include should be one of these:
120120
[RegExp | non-empty string, ...] | RegExp | non-empty string
121121
-> 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
123123
Details:
124124
* options.include[0] should be one of these:
125125
RegExp | non-empty string
@@ -134,7 +134,7 @@ exports[`validate options should throw an error on the "include" option with "tr
134134
- options.include should be one of these:
135135
[RegExp | non-empty string, ...] | RegExp | non-empty string
136136
-> 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
138138
Details:
139139
* options.include should be an array:
140140
[RegExp | non-empty string, ...]
@@ -150,15 +150,15 @@ exports[`validate options should throw an error on the "minRatio" option with "0
150150
"Invalid options object. Compression Plugin has been initialized using an options object that does not match the API schema.
151151
- options.minRatio should be a number.
152152
-> 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"
154154
`;
155155

156156
exports[`validate options should throw an error on the "test" option with "[{},"foo",true]" value 1`] = `
157157
"Invalid options object. Compression Plugin has been initialized using an options object that does not match the API schema.
158158
- options.test should be one of these:
159159
[RegExp | non-empty string, ...] | RegExp | non-empty string
160160
-> 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
162162
Details:
163163
* options.test[2] should be one of these:
164164
RegExp | non-empty string
@@ -173,7 +173,7 @@ exports[`validate options should throw an error on the "test" option with "[true
173173
- options.test should be one of these:
174174
[RegExp | non-empty string, ...] | RegExp | non-empty string
175175
-> 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
177177
Details:
178178
* options.test[0] should be one of these:
179179
RegExp | non-empty string
@@ -188,7 +188,7 @@ exports[`validate options should throw an error on the "test" option with "true"
188188
- options.test should be one of these:
189189
[RegExp | non-empty string, ...] | RegExp | non-empty string
190190
-> 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
192192
Details:
193193
* options.test should be an array:
194194
[RegExp | non-empty string, ...]
@@ -204,7 +204,7 @@ exports[`validate options should throw an error on the "threshold" option with "
204204
"Invalid options object. Compression Plugin has been initialized using an options object that does not match the API schema.
205205
- options.threshold should be a number.
206206
-> 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"
208208
`;
209209

210210
exports[`validate options should throw an error on the "unknown" option with "/test/" value 1`] = `

0 commit comments

Comments
 (0)