Skip to content

Commit 62a9288

Browse files
committed
refactor: update schema
1 parent 7261b59 commit 62a9288

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
lines changed

src/loader-options.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@
1313
}
1414
],
1515
"description": "Specifies a custom public path for the external resources like images, files, etc inside CSS.",
16-
"link": "https://webpack.js.org/plugins/mini-css-extract-plugin/#publicpath"
16+
"link": "https://github.com/webpack-contrib/mini-css-extract-plugin#publicpath"
1717
},
1818
"emit": {
1919
"type": "boolean",
2020
"description": "If true, emits a file (writes a file to the filesystem). If false, the plugin will extract the CSS but will not emit the file",
21-
"link": "https://webpack.js.org/plugins/mini-css-extract-plugin/#emit"
21+
"link": "https://github.com/webpack-contrib/mini-css-extract-plugin#emit"
2222
},
2323
"esModule": {
2424
"type": "boolean",
2525
"description": "Generates JS modules that use the ES modules syntax.",
26-
"link": "https://webpack.js.org/plugins/mini-css-extract-plugin/#esmodule"
26+
"link": "https://github.com/webpack-contrib/mini-css-extract-plugin#esmodule"
2727
},
2828
"layer": {
2929
"type": "string"

src/plugin-options.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
}
1414
],
1515
"description": "This option determines the name of each output CSS file.",
16-
"link": "https://webpack.js.org/plugins/mini-css-extract-plugin/#filename"
16+
"link": "https://github.com/webpack-contrib/mini-css-extract-plugin#filename"
1717
},
1818
"chunkFilename": {
1919
"anyOf": [
@@ -25,21 +25,21 @@
2525
}
2626
],
2727
"description": "This option determines the name of non-entry chunk files.",
28-
"link": "https://webpack.js.org/plugins/mini-css-extract-plugin/#chunkfilename"
28+
"link": "https://github.com/webpack-contrib/mini-css-extract-plugin#chunkfilename"
2929
},
3030
"experimentalUseImportModule": {
3131
"type": "boolean",
3232
"description": "Enable the experimental importModule approach instead of using child compilers. This uses less memory and is faster.",
33-
"link": "https://webpack.js.org/plugins/mini-css-extract-plugin/#experimentaluseimportmodule"
33+
"link": "https://github.com/webpack-contrib/mini-css-extract-plugin#experimentaluseimportmodule"
3434
},
3535
"ignoreOrder": {
3636
"type": "boolean",
3737
"description": "Remove Order Warnings.",
38-
"link": "https://webpack.js.org/plugins/mini-css-extract-plugin/#ignoreorder"
38+
"link": "https://github.com/webpack-contrib/mini-css-extract-plugin#ignoreorder"
3939
},
4040
"insert": {
4141
"description": "Inserts `<link>` at the given position.",
42-
"link": "https://webpack.js.org/plugins/mini-css-extract-plugin/#insert",
42+
"link": "https://github.com/webpack-contrib/mini-css-extract-plugin#insert",
4343
"anyOf": [
4444
{
4545
"type": "string"
@@ -51,7 +51,7 @@
5151
},
5252
"attributes": {
5353
"description": "Adds custom attributes to tag.",
54-
"link": "https://webpack.js.org/plugins/mini-css-extract-plugin/#attributes",
54+
"link": "https://github.com/webpack-contrib/mini-css-extract-plugin#attributes",
5555
"type": "object"
5656
},
5757
"linkType": {
@@ -64,7 +64,7 @@
6464
}
6565
],
6666
"description": "This option allows loading asynchronous chunks with a custom link type",
67-
"link": "https://webpack.js.org/plugins/mini-css-extract-plugin/#linktype"
67+
"link": "https://github.com/webpack-contrib/mini-css-extract-plugin#linktype"
6868
}
6969
}
7070
}

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ exports[`validate options should throw an error on the "esModule" option with "1
44
"Invalid options object. Mini CSS Extract Plugin Loader has been initialized using an options object that does not match the API schema.
55
- options.esModule should be a boolean.
66
-> Generates JS modules that use the ES modules syntax.
7-
-> Read more at https://webpack.js.org/plugins/mini-css-extract-plugin/#esmodule"
7+
-> Read more at https://github.com/webpack-contrib/mini-css-extract-plugin#esmodule"
88
`;
99

1010
exports[`validate options should throw an error on the "publicPath" option with "true" value 1`] = `
1111
"Invalid options object. Mini CSS Extract Plugin Loader has been initialized using an options object that does not match the API schema.
1212
- options.publicPath should be one of these:
1313
string | function
1414
-> Specifies a custom public path for the external resources like images, files, etc inside CSS.
15-
-> Read more at https://webpack.js.org/plugins/mini-css-extract-plugin/#publicpath
15+
-> Read more at https://github.com/webpack-contrib/mini-css-extract-plugin#publicpath
1616
Details:
1717
* options.publicPath should be a string.
1818
* options.publicPath should be an instance of function."

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

+11-11
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ exports[`validate options should throw an error on the "attributes" option with
55
- options.attributes should be an object:
66
object {}
77
-> Adds custom attributes to tag.
8-
-> Read more at https://webpack.js.org/plugins/mini-css-extract-plugin/#attributes"
8+
-> Read more at https://github.com/webpack-contrib/mini-css-extract-plugin#attributes"
99
`;
1010

1111
exports[`validate options should throw an error on the "chunkFilename" option with "true" value 1`] = `
1212
"Invalid options object. Mini CSS Extract Plugin has been initialized using an options object that does not match the API schema.
1313
- options.chunkFilename should be one of these:
1414
string | function
1515
-> This option determines the name of non-entry chunk files.
16-
-> Read more at https://webpack.js.org/plugins/mini-css-extract-plugin/#chunkfilename
16+
-> Read more at https://github.com/webpack-contrib/mini-css-extract-plugin#chunkfilename
1717
Details:
1818
* options.chunkFilename should be a string.
1919
* options.chunkFilename should be an instance of function."
@@ -24,7 +24,7 @@ exports[`validate options should throw an error on the "filename" option with "t
2424
- options.filename should be one of these:
2525
string | function
2626
-> This option determines the name of each output CSS file.
27-
-> Read more at https://webpack.js.org/plugins/mini-css-extract-plugin/#filename
27+
-> Read more at https://github.com/webpack-contrib/mini-css-extract-plugin#filename
2828
Details:
2929
* options.filename should be a string.
3030
* options.filename should be an instance of function."
@@ -34,15 +34,15 @@ exports[`validate options should throw an error on the "ignoreOrder" option with
3434
"Invalid options object. Mini CSS Extract Plugin has been initialized using an options object that does not match the API schema.
3535
- options.ignoreOrder should be a boolean.
3636
-> Remove Order Warnings.
37-
-> Read more at https://webpack.js.org/plugins/mini-css-extract-plugin/#ignoreorder"
37+
-> Read more at https://github.com/webpack-contrib/mini-css-extract-plugin#ignoreorder"
3838
`;
3939

4040
exports[`validate options should throw an error on the "insert" option with "{}" value 1`] = `
4141
"Invalid options object. Mini CSS Extract Plugin has been initialized using an options object that does not match the API schema.
4242
- options.insert should be one of these:
4343
string | function
4444
-> Inserts \`<link>\` at the given position.
45-
-> Read more at https://webpack.js.org/plugins/mini-css-extract-plugin/#insert
45+
-> Read more at https://github.com/webpack-contrib/mini-css-extract-plugin#insert
4646
Details:
4747
* options.insert should be a string.
4848
* options.insert should be an instance of function."
@@ -53,7 +53,7 @@ exports[`validate options should throw an error on the "insert" option with "1"
5353
- options.insert should be one of these:
5454
string | function
5555
-> Inserts \`<link>\` at the given position.
56-
-> Read more at https://webpack.js.org/plugins/mini-css-extract-plugin/#insert
56+
-> Read more at https://github.com/webpack-contrib/mini-css-extract-plugin#insert
5757
Details:
5858
* options.insert should be a string.
5959
* options.insert should be an instance of function."
@@ -64,7 +64,7 @@ exports[`validate options should throw an error on the "insert" option with "tru
6464
- options.insert should be one of these:
6565
string | function
6666
-> Inserts \`<link>\` at the given position.
67-
-> Read more at https://webpack.js.org/plugins/mini-css-extract-plugin/#insert
67+
-> Read more at https://github.com/webpack-contrib/mini-css-extract-plugin#insert
6868
Details:
6969
* options.insert should be a string.
7070
* options.insert should be an instance of function."
@@ -75,7 +75,7 @@ exports[`validate options should throw an error on the "linkType" option with "[
7575
- options.linkType should be one of these:
7676
\\"text/css\\" | boolean
7777
-> This option allows loading asynchronous chunks with a custom link type
78-
-> Read more at https://webpack.js.org/plugins/mini-css-extract-plugin/#linktype
78+
-> Read more at https://github.com/webpack-contrib/mini-css-extract-plugin#linktype
7979
Details:
8080
* options.linkType should be \\"text/css\\".
8181
* options.linkType should be a boolean."
@@ -86,7 +86,7 @@ exports[`validate options should throw an error on the "linkType" option with "{
8686
- options.linkType should be one of these:
8787
\\"text/css\\" | boolean
8888
-> This option allows loading asynchronous chunks with a custom link type
89-
-> Read more at https://webpack.js.org/plugins/mini-css-extract-plugin/#linktype
89+
-> Read more at https://github.com/webpack-contrib/mini-css-extract-plugin#linktype
9090
Details:
9191
* options.linkType should be \\"text/css\\".
9292
* options.linkType should be a boolean."
@@ -97,7 +97,7 @@ exports[`validate options should throw an error on the "linkType" option with "1
9797
- options.linkType should be one of these:
9898
\\"text/css\\" | boolean
9999
-> This option allows loading asynchronous chunks with a custom link type
100-
-> Read more at https://webpack.js.org/plugins/mini-css-extract-plugin/#linktype
100+
-> Read more at https://github.com/webpack-contrib/mini-css-extract-plugin#linktype
101101
Details:
102102
* options.linkType should be \\"text/css\\".
103103
* options.linkType should be a boolean."
@@ -108,7 +108,7 @@ exports[`validate options should throw an error on the "linkType" option with "i
108108
- options.linkType should be one of these:
109109
\\"text/css\\" | boolean
110110
-> This option allows loading asynchronous chunks with a custom link type
111-
-> Read more at https://webpack.js.org/plugins/mini-css-extract-plugin/#linktype
111+
-> Read more at https://github.com/webpack-contrib/mini-css-extract-plugin#linktype
112112
Details:
113113
* options.linkType should be \\"text/css\\".
114114
* options.linkType should be a boolean."

0 commit comments

Comments
 (0)