options.json 2.2 KB

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