UNPKG

3.45 kBJSONView Raw
1{
2 "type": "object",
3 "properties": {
4 "mimeTypes": {
5 "description": "Allows a user to register custom mime types or extension mappings.",
6 "link": "https://github.com/webpack/webpack-dev-middleware#mimetypes",
7 "type": "object"
8 },
9 "writeToDisk": {
10 "description": "Allows to write generated files on disk.",
11 "link": "https://github.com/webpack/webpack-dev-middleware#writetodisk",
12 "anyOf": [
13 {
14 "type": "boolean"
15 },
16 {
17 "instanceof": "Function"
18 }
19 ]
20 },
21 "methods": {
22 "description": "Allows to pass the list of HTTP request methods accepted by the middleware.",
23 "link": "https://github.com/webpack/webpack-dev-middleware#methods",
24 "type": "array",
25 "items": {
26 "type": "string",
27 "minlength": "1"
28 }
29 },
30 "headers": {
31 "anyOf": [
32 {
33 "type": "array",
34 "items": {
35 "type": "object",
36 "additionalProperties": false,
37 "properties": {
38 "key": {
39 "description": "key of header.",
40 "type": "string"
41 },
42 "value": {
43 "description": "value of header.",
44 "type": "string"
45 }
46 }
47 },
48 "minItems": 1
49 },
50 {
51 "type": "object"
52 },
53 {
54 "instanceof": "Function"
55 }
56 ],
57 "description": "Allows to pass custom HTTP headers on each request",
58 "link": "https://github.com/webpack/webpack-dev-middleware#headers"
59 },
60 "publicPath": {
61 "description": "The `publicPath` specifies the public URL address of the output files when referenced in a browser.",
62 "link": "https://github.com/webpack/webpack-dev-middleware#publicpath",
63 "anyOf": [
64 {
65 "enum": ["auto"]
66 },
67 {
68 "type": "string"
69 },
70 {
71 "instanceof": "Function"
72 }
73 ]
74 },
75 "stats": {
76 "description": "Stats options object or preset name.",
77 "link": "https://github.com/webpack/webpack-dev-middleware#stats",
78 "anyOf": [
79 {
80 "enum": [
81 "none",
82 "summary",
83 "errors-only",
84 "errors-warnings",
85 "minimal",
86 "normal",
87 "detailed",
88 "verbose"
89 ]
90 },
91 {
92 "type": "boolean"
93 },
94 {
95 "type": "object",
96 "additionalProperties": true
97 }
98 ]
99 },
100 "serverSideRender": {
101 "description": "Instructs the module to enable or disable the server-side rendering mode.",
102 "link": "https://github.com/webpack/webpack-dev-middleware#serversiderender",
103 "type": "boolean"
104 },
105 "outputFileSystem": {
106 "description": "Set the default file system which will be used by webpack as primary destination of generated files.",
107 "link": "https://github.com/webpack/webpack-dev-middleware#outputfilesystem",
108 "type": "object"
109 },
110 "index": {
111 "description": "Allows to serve an index of the directory.",
112 "link": "https://github.com/webpack/webpack-dev-middleware#index",
113 "anyOf": [
114 {
115 "type": "boolean"
116 },
117 {
118 "type": "string",
119 "minlength": "1"
120 }
121 ]
122 }
123 },
124 "additionalProperties": false
125}