| [9af201e] | 1 | {
|
|---|
| 2 | "definitions": {
|
|---|
| 3 | "Rule": {
|
|---|
| 4 | "description": "Filtering rule as regex or string.",
|
|---|
| 5 | "anyOf": [
|
|---|
| 6 | {
|
|---|
| 7 | "instanceof": "RegExp",
|
|---|
| 8 | "tsType": "RegExp"
|
|---|
| 9 | },
|
|---|
| 10 | {
|
|---|
| 11 | "type": "string",
|
|---|
| 12 | "minLength": 1
|
|---|
| 13 | }
|
|---|
| 14 | ]
|
|---|
| 15 | },
|
|---|
| 16 | "Rules": {
|
|---|
| 17 | "description": "Filtering rules.",
|
|---|
| 18 | "anyOf": [
|
|---|
| 19 | {
|
|---|
| 20 | "type": "array",
|
|---|
| 21 | "items": {
|
|---|
| 22 | "description": "A rule condition.",
|
|---|
| 23 | "oneOf": [
|
|---|
| 24 | {
|
|---|
| 25 | "$ref": "#/definitions/Rule"
|
|---|
| 26 | }
|
|---|
| 27 | ]
|
|---|
| 28 | }
|
|---|
| 29 | },
|
|---|
| 30 | {
|
|---|
| 31 | "$ref": "#/definitions/Rule"
|
|---|
| 32 | }
|
|---|
| 33 | ]
|
|---|
| 34 | },
|
|---|
| 35 | "MinimizerOptions": {
|
|---|
| 36 | "additionalProperties": true,
|
|---|
| 37 | "type": "object"
|
|---|
| 38 | }
|
|---|
| 39 | },
|
|---|
| 40 | "title": "CssMinimizerWebpackPluginOptions",
|
|---|
| 41 | "type": "object",
|
|---|
| 42 | "properties": {
|
|---|
| 43 | "test": {
|
|---|
| 44 | "description": "Include all modules that pass test assertion.",
|
|---|
| 45 | "link": "https://github.com/webpack-contrib/css-minimizer-webpack-plugin/#test",
|
|---|
| 46 | "oneOf": [
|
|---|
| 47 | {
|
|---|
| 48 | "$ref": "#/definitions/Rules"
|
|---|
| 49 | }
|
|---|
| 50 | ]
|
|---|
| 51 | },
|
|---|
| 52 | "include": {
|
|---|
| 53 | "description": "Include all modules matching any of these conditions.",
|
|---|
| 54 | "link": "https://github.com/webpack-contrib/css-minimizer-webpack-plugin/#include",
|
|---|
| 55 | "oneOf": [
|
|---|
| 56 | {
|
|---|
| 57 | "$ref": "#/definitions/Rules"
|
|---|
| 58 | }
|
|---|
| 59 | ]
|
|---|
| 60 | },
|
|---|
| 61 | "exclude": {
|
|---|
| 62 | "description": "Exclude all modules matching any of these conditions.",
|
|---|
| 63 | "link": "https://github.com/webpack-contrib/css-minimizer-webpack-plugin/#exclude",
|
|---|
| 64 | "oneOf": [
|
|---|
| 65 | {
|
|---|
| 66 | "$ref": "#/definitions/Rules"
|
|---|
| 67 | }
|
|---|
| 68 | ]
|
|---|
| 69 | },
|
|---|
| 70 | "minimizerOptions": {
|
|---|
| 71 | "description": "Options for `cssMinimizerOptions`.",
|
|---|
| 72 | "link": "https://github.com/webpack-contrib/css-minimizer-webpack-plugin/#minimizeroptions",
|
|---|
| 73 | "anyOf": [
|
|---|
| 74 | {
|
|---|
| 75 | "$ref": "#/definitions/MinimizerOptions"
|
|---|
| 76 | },
|
|---|
| 77 | {
|
|---|
| 78 | "type": "array",
|
|---|
| 79 | "minItems": 1,
|
|---|
| 80 | "items": {
|
|---|
| 81 | "$ref": "#/definitions/MinimizerOptions"
|
|---|
| 82 | }
|
|---|
| 83 | }
|
|---|
| 84 | ]
|
|---|
| 85 | },
|
|---|
| 86 | "parallel": {
|
|---|
| 87 | "description": "Use multi-process parallel running to improve the build speed.",
|
|---|
| 88 | "link": "https://github.com/webpack-contrib/css-minimizer-webpack-plugin/#parallel",
|
|---|
| 89 | "anyOf": [
|
|---|
| 90 | {
|
|---|
| 91 | "type": "boolean"
|
|---|
| 92 | },
|
|---|
| 93 | {
|
|---|
| 94 | "type": "integer"
|
|---|
| 95 | }
|
|---|
| 96 | ]
|
|---|
| 97 | },
|
|---|
| 98 | "warningsFilter": {
|
|---|
| 99 | "description": "Allow to filter `css minimizer` warnings.",
|
|---|
| 100 | "link": "https://github.com/webpack-contrib/css-minimizer-webpack-plugin/#warningsfilter",
|
|---|
| 101 | "instanceof": "Function"
|
|---|
| 102 | },
|
|---|
| 103 | "minify": {
|
|---|
| 104 | "description": "Allows you to override default minify function.",
|
|---|
| 105 | "link": "https://github.com/webpack-contrib/css-minimizer-webpack-plugin/#minify",
|
|---|
| 106 | "anyOf": [
|
|---|
| 107 | {
|
|---|
| 108 | "instanceof": "Function"
|
|---|
| 109 | },
|
|---|
| 110 | {
|
|---|
| 111 | "type": "array",
|
|---|
| 112 | "minItems": 1,
|
|---|
| 113 | "items": {
|
|---|
| 114 | "instanceof": "Function"
|
|---|
| 115 | }
|
|---|
| 116 | }
|
|---|
| 117 | ]
|
|---|
| 118 | }
|
|---|
| 119 | },
|
|---|
| 120 | "additionalProperties": false
|
|---|
| 121 | }
|
|---|