options.json 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. {
  2. "type": "object",
  3. "properties": {
  4. "serveIndex": {
  5. "type": "boolean"
  6. },
  7. "hot": {
  8. "type": "boolean"
  9. },
  10. "hotOnly": {
  11. "type": "boolean"
  12. },
  13. "lazy": {
  14. "type": "boolean"
  15. },
  16. "bonjour": {
  17. "type": "boolean"
  18. },
  19. "host": {
  20. "anyOf": [
  21. {
  22. "type": "string"
  23. },
  24. {
  25. "type": "null"
  26. }
  27. ]
  28. },
  29. "port": {
  30. "anyOf": [
  31. {
  32. "type": "number"
  33. },
  34. {
  35. "type": "string"
  36. },
  37. {
  38. "type": "null"
  39. }
  40. ]
  41. },
  42. "allowedHosts": {
  43. "type": "array",
  44. "items": {
  45. "type": "string"
  46. }
  47. },
  48. "filename": {
  49. "anyOf": [
  50. {
  51. "type": "string"
  52. },
  53. {
  54. "instanceof": "RegExp"
  55. },
  56. {
  57. "instanceof": "Function"
  58. }
  59. ]
  60. },
  61. "publicPath": {
  62. "type": "string"
  63. },
  64. "socket": {
  65. "type": "string"
  66. },
  67. "sockPath": {
  68. "type": "string"
  69. },
  70. "watchOptions": {
  71. "type": "object"
  72. },
  73. "writeToDisk": {
  74. "anyOf": [
  75. {
  76. "type": "boolean"
  77. },
  78. {
  79. "instanceof": "Function"
  80. }
  81. ]
  82. },
  83. "headers": {
  84. "type": "object"
  85. },
  86. "logLevel": {
  87. "enum": ["info", "warn", "error", "debug", "trace", "silent"]
  88. },
  89. "clientLogLevel": {
  90. "enum": ["none", "info", "error", "warning"]
  91. },
  92. "overlay": {
  93. "anyOf": [
  94. {
  95. "type": "boolean"
  96. },
  97. {
  98. "type": "object",
  99. "properties": {
  100. "errors": {
  101. "type": "boolean"
  102. },
  103. "warnings": {
  104. "type": "boolean"
  105. }
  106. }
  107. }
  108. ]
  109. },
  110. "progress": {
  111. "type": "boolean"
  112. },
  113. "key": {
  114. "anyOf": [
  115. {
  116. "type": "string"
  117. },
  118. {
  119. "instanceof": "Buffer"
  120. }
  121. ]
  122. },
  123. "cert": {
  124. "anyOf": [
  125. {
  126. "type": "string"
  127. },
  128. {
  129. "instanceof": "Buffer"
  130. }
  131. ]
  132. },
  133. "ca": {
  134. "anyOf": [
  135. {
  136. "type": "string"
  137. },
  138. {
  139. "instanceof": "Buffer"
  140. }
  141. ]
  142. },
  143. "pfx": {
  144. "anyOf": [
  145. {
  146. "type": "string"
  147. },
  148. {
  149. "instanceof": "Buffer"
  150. }
  151. ]
  152. },
  153. "pfxPassphrase": {
  154. "type": "string"
  155. },
  156. "requestCert": {
  157. "type": "boolean"
  158. },
  159. "inline": {
  160. "type": "boolean"
  161. },
  162. "disableHostCheck": {
  163. "type": "boolean"
  164. },
  165. "public": {
  166. "type": "string"
  167. },
  168. "https": {
  169. "anyOf": [
  170. {
  171. "type": "object"
  172. },
  173. {
  174. "type": "boolean"
  175. }
  176. ]
  177. },
  178. "http2": {
  179. "type": "boolean"
  180. },
  181. "contentBase": {
  182. "anyOf": [
  183. {
  184. "enum": [false]
  185. },
  186. {
  187. "type": "number"
  188. },
  189. {
  190. "type": "string"
  191. },
  192. {
  193. "type": "array",
  194. "items": {
  195. "type": "string"
  196. },
  197. "minItems": 1
  198. }
  199. ]
  200. },
  201. "watchContentBase": {
  202. "type": "boolean"
  203. },
  204. "open": {
  205. "anyOf": [
  206. {
  207. "type": "string"
  208. },
  209. {
  210. "type": "boolean"
  211. }
  212. ]
  213. },
  214. "useLocalIp": {
  215. "type": "boolean"
  216. },
  217. "openPage": {
  218. "type": "string"
  219. },
  220. "features": {
  221. "type": "array",
  222. "items": {
  223. "type": "string"
  224. }
  225. },
  226. "compress": {
  227. "type": "boolean"
  228. },
  229. "proxy": {
  230. "anyOf": [
  231. {
  232. "type": "object"
  233. },
  234. {
  235. "type": "array",
  236. "items": {
  237. "anyOf": [
  238. {
  239. "type": "object"
  240. },
  241. {
  242. "instanceof": "Function"
  243. }
  244. ]
  245. },
  246. "minItems": 1
  247. }
  248. ]
  249. },
  250. "historyApiFallback": {
  251. "anyOf": [
  252. {
  253. "type": "boolean"
  254. },
  255. {
  256. "type": "object"
  257. }
  258. ]
  259. },
  260. "staticOptions": {
  261. "type": "object"
  262. },
  263. "setup": {
  264. "instanceof": "Function"
  265. },
  266. "before": {
  267. "instanceof": "Function"
  268. },
  269. "after": {
  270. "instanceof": "Function"
  271. },
  272. "stats": {
  273. "anyOf": [
  274. {
  275. "type": "object"
  276. },
  277. {
  278. "type": "boolean"
  279. },
  280. {
  281. "enum": ["none", "errors-only", "minimal", "normal", "verbose"]
  282. }
  283. ]
  284. },
  285. "reporter": {
  286. "instanceof": "Function"
  287. },
  288. "logTime": {
  289. "type": "boolean"
  290. },
  291. "noInfo": {
  292. "type": "boolean"
  293. },
  294. "mimeTypes": {
  295. "type": "object"
  296. },
  297. "quiet": {
  298. "type": "boolean"
  299. },
  300. "serverSideRender": {
  301. "type": "boolean"
  302. },
  303. "index": {
  304. "type": "string"
  305. },
  306. "log": {
  307. "instanceof": "Function"
  308. },
  309. "warn": {
  310. "instanceof": "Function"
  311. }
  312. },
  313. "errorMessage": {
  314. "properties": {
  315. "hot": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-hot)",
  316. "hotOnly": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-hotonly)",
  317. "lazy": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-lazy-)",
  318. "bonjour": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-bonjour)",
  319. "publicPath": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserver-publicpath-)",
  320. "host": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserver-host)",
  321. "allowedHosts": "should be {Array} (https://webpack.js.org/configuration/dev-server/#devserver-allowedhosts)",
  322. "logLevel": "should be {String} and equal to one of the allowed values\n\n [ 'trace', 'debug', 'info', 'warn', 'error', 'silent' ]\n\n(https://webpack.js.org/configuration/dev-server/#devserver-loglevel)",
  323. "filename": "should be {String|RegExp|Function} (https://webpack.js.org/configuration/dev-server/#devserver-filename-)",
  324. "port": "should be {String|Number} (https://webpack.js.org/configuration/dev-server/#devserver-port)",
  325. "socket": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserver-socket)",
  326. "sockPath": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserver-sockPath)",
  327. "watchOptions": "should be {Object} (https://webpack.js.org/configuration/dev-server/#devserver-watchoptions)",
  328. "writeToDisk": "should be {Boolean|Function} (https://github.com/webpack/webpack-dev-middleware#writetodisk)",
  329. "headers": "should be {Object} (https://webpack.js.org/configuration/dev-server/#devserver-headers-)",
  330. "clientLogLevel": "should be {String} and equal to one of the allowed values\n\n [ 'trace', 'debug', 'info', 'warn', 'error', 'silent' ]\n\n(https://webpack.js.org/configuration/dev-server/#devserver-clientloglevel)",
  331. "overlay": "should be {Object|Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-overlay)",
  332. "progress": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-progress-cli-only)",
  333. "key": "should be {String|Buffer} (https://webpack.js.org/configuration/dev-server/#devserver-key)",
  334. "cert": "should be {String|Buffer} (https://webpack.js.org/configuration/dev-server/#devserver-cert)",
  335. "ca": "should be {String|Buffer} (https://webpack.js.org/configuration/dev-server/#devserver-ca)",
  336. "pfx": "should be {String|Buffer} (https://webpack.js.org/configuration/dev-server/#devserver-pfx)",
  337. "pfxPassphrase": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserver-pfxpassphrase)",
  338. "requestCert": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-requestcert)",
  339. "inline": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-inline)",
  340. "disableHostCheck": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-disablehostcheck)",
  341. "public": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserver-public)",
  342. "https": "should be {Object|Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-https)",
  343. "http2": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-http2)",
  344. "contentBase": "should be {Array} (https://webpack.js.org/configuration/dev-server/#devserver-contentbase)",
  345. "watchContentBase": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-watchcontentbase)",
  346. "open": "should be {String|Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-open)",
  347. "useLocalIp": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-uselocalip)",
  348. "openPage": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserver-openpage)",
  349. "features": "should be {Array} (https://webpack.js.org/configuration/dev-server/#devserver-features)",
  350. "compress": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-compress)",
  351. "proxy": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-hot)",
  352. "historyApiFallback": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-historyapifallback)",
  353. "staticOptions": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-staticOptions)",
  354. "setup": "should be {Function} (https://webpack.js.org/configuration/dev-server/#devserver-setup)",
  355. "before": "should be {Function} (https://webpack.js.org/configuration/dev-server/#devserver-before)",
  356. "after": "should be {Function} (https://webpack.js.org/configuration/dev-server/#devserver-after)",
  357. "stats": "should be {Boolean|Object|String} (https://webpack.js.org/configuration/dev-server/#devserver-stats-)",
  358. "reporter": "should be {Function} (https://webpack.js.org/configuration/dev-server/#devserver-reporter)",
  359. "logTime": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-logtime)",
  360. "noInfo": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-noinfo-)",
  361. "mimeTypes": "should be {Object} (https://webpack.js.org/configuration/dev-server/#devservermimetypes-)",
  362. "quiet": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-quiet-)",
  363. "serverSideRender": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-serversiderender)",
  364. "index": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserver-index)",
  365. "log": "should be {Function} (https://webpack.js.org/configuration/dev-server/#devserver-log)",
  366. "warn": "should be {Function} (https://webpack.js.org/configuration/dev-server/#devserver-warn)"
  367. }
  368. },
  369. "additionalProperties": false
  370. }