UNPKG

merge-json-webpack-plugin

Version:
84 lines (83 loc) 1.97 kB
{ "title": "MergeJsonPluginOptions", "type": "object", "additionalProperties": false, "properties": { "cwd": { "description": "The directory, an absolute path, for resolving files", "type": "string", "minLength": 1 }, "force": { "description": "Overwrites files already in compilation.assets", "type": "boolean" }, "mergeFn": { "description": "A function used to merge two objects", "instanceof": "Function" }, "minify": { "description": "Minify the output json", "type": "boolean" }, "groups": { "description": "Files to merge and destination path", "type": "array", "minItems": 1, "items": { "type": "object", "additionalProperties": false, "required": [ "to" ], "properties": { "pattern": { "oneOf": [ { "type": "array", "minItems": 1, "items": { "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 } ] }, "files": { "type": "array", "minItems": 1, "items": { "type": "string", "minLength": 1 } }, "transform": { "instanceOf": "Function" }, "transformFile": { "instanceOf": "Function" }, "to": { "type": "string", "minLength": 1 }, "globOptions": { "description": "Options to forward to fast-glob", "type": "object" } } } }, "globOptions": { "description": "Options to forward to fast-glob", "type": "object" } }, "required": [ "groups" ] }