123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- {
- "type": "object",
- "properties": {
- "mimeTypes": {
- "description": "Allows a user to register custom mime types or extension mappings.",
- "link": "https://github.com/webpack/webpack-dev-middleware#mimetypes",
- "type": "object"
- },
- "writeToDisk": {
- "description": "Allows to write generated files on disk.",
- "link": "https://github.com/webpack/webpack-dev-middleware#writetodisk",
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "instanceof": "Function"
- }
- ]
- },
- "methods": {
- "description": "Allows to pass the list of HTTP request methods accepted by the middleware.",
- "link": "https://github.com/webpack/webpack-dev-middleware#methods",
- "type": "array",
- "items": {
- "type": "string",
- "minlength": "1"
- }
- },
- "headers": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "object",
- "additionalProperties": false,
- "properties": {
- "key": {
- "description": "key of header.",
- "type": "string"
- },
- "value": {
- "description": "value of header.",
- "type": "string"
- }
- }
- },
- "minItems": 1
- },
- {
- "type": "object"
- },
- {
- "instanceof": "Function"
- }
- ],
- "description": "Allows to pass custom HTTP headers on each request",
- "link": "https://github.com/webpack/webpack-dev-middleware#headers"
- },
- "publicPath": {
- "description": "The `publicPath` specifies the public URL address of the output files when referenced in a browser.",
- "link": "https://github.com/webpack/webpack-dev-middleware#publicpath",
- "anyOf": [
- {
- "enum": ["auto"]
- },
- {
- "type": "string"
- },
- {
- "instanceof": "Function"
- }
- ]
- },
- "stats": {
- "description": "Stats options object or preset name.",
- "link": "https://github.com/webpack/webpack-dev-middleware#stats",
- "anyOf": [
- {
- "enum": [
- "none",
- "summary",
- "errors-only",
- "errors-warnings",
- "minimal",
- "normal",
- "detailed",
- "verbose"
- ]
- },
- {
- "type": "boolean"
- },
- {
- "type": "object",
- "additionalProperties": true
- }
- ]
- },
- "serverSideRender": {
- "description": "Instructs the module to enable or disable the server-side rendering mode.",
- "link": "https://github.com/webpack/webpack-dev-middleware#serversiderender",
- "type": "boolean"
- },
- "outputFileSystem": {
- "description": "Set the default file system which will be used by webpack as primary destination of generated files.",
- "link": "https://github.com/webpack/webpack-dev-middleware#outputfilesystem",
- "type": "object"
- },
- "index": {
- "description": "Allows to serve an index of the directory.",
- "link": "https://github.com/webpack/webpack-dev-middleware#index",
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "string",
- "minlength": "1"
- }
- ]
- }
- },
- "additionalProperties": false
- }
|