Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

BannerPlugin.json 2.1 KiB

před 3 roky
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {
  2. "definitions": {
  3. "rule": {
  4. "oneOf": [
  5. {
  6. "instanceof": "RegExp"
  7. },
  8. {
  9. "minLength": 1,
  10. "type": "string"
  11. }
  12. ]
  13. },
  14. "rules": {
  15. "oneOf": [
  16. {
  17. "items": {
  18. "description": "A rule condition",
  19. "anyOf": [
  20. {
  21. "$ref": "#/definitions/rule"
  22. }
  23. ]
  24. },
  25. "type": "array"
  26. },
  27. {
  28. "$ref": "#/definitions/rule"
  29. }
  30. ]
  31. }
  32. },
  33. "oneOf": [
  34. {
  35. "type": "object",
  36. "additionalProperties": false,
  37. "required": ["banner"],
  38. "properties": {
  39. "banner": {
  40. "description": "Specifies the banner",
  41. "anyOf": [
  42. {
  43. "instanceof": "Function"
  44. },
  45. {
  46. "type": "string"
  47. }
  48. ]
  49. },
  50. "raw": {
  51. "description": "If true, banner will not be wrapped in a comment",
  52. "type": "boolean"
  53. },
  54. "entryOnly": {
  55. "description": "If true, the banner will only be added to the entry chunks",
  56. "type": "boolean"
  57. },
  58. "test": {
  59. "description": "Include all modules that pass test assertion",
  60. "anyOf": [
  61. {
  62. "$ref": "#/definitions/rules"
  63. }
  64. ]
  65. },
  66. "include": {
  67. "description": "Include all modules matching any of these conditions",
  68. "anyOf": [
  69. {
  70. "$ref": "#/definitions/rules"
  71. }
  72. ]
  73. },
  74. "exclude": {
  75. "description": "Exclude all modules matching any of these conditions",
  76. "anyOf": [
  77. {
  78. "$ref": "#/definitions/rules"
  79. }
  80. ]
  81. }
  82. }
  83. },
  84. {
  85. "description": "The banner as function, it will be wrapped in a comment",
  86. "instanceof": "Function"
  87. },
  88. {
  89. "description": "The banner as string, it will be wrapped in a comment",
  90. "minLength": 1,
  91. "type": "string"
  92. }
  93. ]
  94. }