@@ -4,6 +4,8 @@ exports[`validation should throw an error on the "headers" option with "1" value
4
4
"Invalid options object. Dev Middleware has been initialized using an options object that does not match the API schema.
5
5
- options.headers should be one of these:
6
6
object { … } | function
7
+ -> Allows to pass custom HTTP headers on each request
8
+ -> Read more at https://github.com/webpack/webpack-dev-middleware#headers
7
9
Details:
8
10
* options.headers should be an object:
9
11
object { … }
@@ -14,6 +16,8 @@ exports[`validation should throw an error on the "headers" option with "true" va
14
16
"Invalid options object. Dev Middleware has been initialized using an options object that does not match the API schema.
15
17
- options.headers should be one of these:
16
18
object { … } | function
19
+ -> Allows to pass custom HTTP headers on each request
20
+ -> Read more at https://github.com/webpack/webpack-dev-middleware#headers
17
21
Details:
18
22
* options.headers should be an object:
19
23
object { … }
@@ -25,6 +29,7 @@ exports[`validation should throw an error on the "index" option with "{}" value
25
29
- options.index should be one of these:
26
30
boolean | string
27
31
-> Allows to serve an index of the directory.
32
+ -> Read more at https://github.com/webpack/webpack-dev-middleware#index
28
33
Details:
29
34
* options.index should be a boolean.
30
35
* options.index should be a string."
@@ -35,6 +40,7 @@ exports[`validation should throw an error on the "index" option with "0" value 1
35
40
- options.index should be one of these:
36
41
boolean | string
37
42
-> Allows to serve an index of the directory.
43
+ -> Read more at https://github.com/webpack/webpack-dev-middleware#index
38
44
Details:
39
45
* options.index should be a boolean.
40
46
* options.index should be a string."
@@ -44,35 +50,40 @@ exports[`validation should throw an error on the "methods" option with "{}" valu
44
50
"Invalid options object. Dev Middleware has been initialized using an options object that does not match the API schema.
45
51
- options.methods should be an array:
46
52
[string, ...]
47
- -> Allows to pass the list of HTTP request methods accepted by the middleware."
53
+ -> Allows to pass the list of HTTP request methods accepted by the middleware.
54
+ -> Read more at https://github.com/webpack/webpack-dev-middleware#methods"
48
55
`;
49
56
50
57
exports[`validation should throw an error on the "methods" option with "true" value 1`] = `
51
58
"Invalid options object. Dev Middleware has been initialized using an options object that does not match the API schema.
52
59
- options.methods should be an array:
53
60
[string, ...]
54
- -> Allows to pass the list of HTTP request methods accepted by the middleware."
61
+ -> Allows to pass the list of HTTP request methods accepted by the middleware.
62
+ -> Read more at https://github.com/webpack/webpack-dev-middleware#methods"
55
63
`;
56
64
57
65
exports[`validation should throw an error on the "mimeTypes" option with "foo" value 1`] = `
58
66
"Invalid options object. Dev Middleware has been initialized using an options object that does not match the API schema.
59
67
- options.mimeTypes should be an object:
60
68
object { … }
61
- -> Allows a user to register custom mime types or extension mappings."
69
+ -> Allows a user to register custom mime types or extension mappings.
70
+ -> Read more at https://github.com/webpack/webpack-dev-middleware#mimetypes"
62
71
`;
63
72
64
73
exports[`validation should throw an error on the "outputFileSystem" option with "false" value 1`] = `
65
74
"Invalid options object. Dev Middleware has been initialized using an options object that does not match the API schema.
66
75
- options.outputFileSystem should be an object:
67
76
object { … }
68
- -> Set the default file system which will be used by webpack as primary destination of generated files."
77
+ -> Set the default file system which will be used by webpack as primary destination of generated files.
78
+ -> Read more at https://github.com/webpack/webpack-dev-middleware#outputfilesystem"
69
79
`;
70
80
71
81
exports[`validation should throw an error on the "publicPath" option with "false" value 1`] = `
72
82
"Invalid options object. Dev Middleware has been initialized using an options object that does not match the API schema.
73
83
- options.publicPath should be one of these:
74
84
\\"auto\\" | string | function
75
85
-> The \`publicPath\` specifies the public URL address of the output files when referenced in a browser.
86
+ -> Read more at https://github.com/webpack/webpack-dev-middleware#publicpath
76
87
Details:
77
88
* options.publicPath should be \\"auto\\".
78
89
* options.publicPath should be a string.
@@ -82,20 +93,23 @@ exports[`validation should throw an error on the "publicPath" option with "false
82
93
exports[`validation should throw an error on the "serverSideRender" option with "0" value 1`] = `
83
94
"Invalid options object. Dev Middleware has been initialized using an options object that does not match the API schema.
84
95
- options.serverSideRender should be a boolean.
85
- -> Instructs the module to enable or disable the server-side rendering mode."
96
+ -> Instructs the module to enable or disable the server-side rendering mode.
97
+ -> Read more at https://github.com/webpack/webpack-dev-middleware#serversiderender"
86
98
`;
87
99
88
100
exports[`validation should throw an error on the "serverSideRender" option with "foo" value 1`] = `
89
101
"Invalid options object. Dev Middleware has been initialized using an options object that does not match the API schema.
90
102
- options.serverSideRender should be a boolean.
91
- -> Instructs the module to enable or disable the server-side rendering mode."
103
+ -> Instructs the module to enable or disable the server-side rendering mode.
104
+ -> Read more at https://github.com/webpack/webpack-dev-middleware#serversiderender"
92
105
`;
93
106
94
107
exports[`validation should throw an error on the "stats" option with "0" value 1`] = `
95
108
"Invalid options object. Dev Middleware has been initialized using an options object that does not match the API schema.
96
109
- options.stats should be one of these:
97
110
\\"none\\" | \\"summary\\" | \\"errors-only\\" | \\"errors-warnings\\" | \\"minimal\\" | \\"normal\\" | \\"detailed\\" | \\"verbose\\" | boolean | object { … }
98
111
-> Stats options object or preset name.
112
+ -> Read more at https://github.com/webpack/webpack-dev-middleware#stats
99
113
Details:
100
114
* options.stats should be one of these:
101
115
\\"none\\" | \\"summary\\" | \\"errors-only\\" | \\"errors-warnings\\" | \\"minimal\\" | \\"normal\\" | \\"detailed\\" | \\"verbose\\"
@@ -109,6 +123,7 @@ exports[`validation should throw an error on the "writeToDisk" option with "{}"
109
123
- options.writeToDisk should be one of these:
110
124
boolean | function
111
125
-> Allows to write generated files on disk.
126
+ -> Read more at https://github.com/webpack/webpack-dev-middleware#writetodisk
112
127
Details:
113
128
* options.writeToDisk should be a boolean.
114
129
* options.writeToDisk should be an instance of function."
0 commit comments