options.json 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. {
  2. "additionalProperties": false,
  3. "properties": {
  4. "url": {
  5. "description": "Enables/Disables 'url'/'image-set' functions handling (https://github.com/webpack-contrib/css-loader#url).",
  6. "anyOf": [
  7. {
  8. "type": "boolean"
  9. },
  10. {
  11. "instanceof": "Function"
  12. }
  13. ]
  14. },
  15. "import": {
  16. "description": "Enables/Disables '@import' at-rules handling (https://github.com/webpack-contrib/css-loader#import).",
  17. "anyOf": [
  18. {
  19. "type": "boolean"
  20. },
  21. {
  22. "instanceof": "Function"
  23. }
  24. ]
  25. },
  26. "modules": {
  27. "description": "Enables/Disables CSS Modules and their configuration (https://github.com/webpack-contrib/css-loader#modules).",
  28. "anyOf": [
  29. {
  30. "type": "boolean"
  31. },
  32. {
  33. "enum": ["local", "global", "pure"]
  34. },
  35. {
  36. "type": "object",
  37. "additionalProperties": false,
  38. "properties": {
  39. "compileType": {
  40. "description": "Controls the extent to which css-loader will process module code (https://github.com/webpack-contrib/css-loader#type)",
  41. "enum": ["module", "icss"]
  42. },
  43. "auto": {
  44. "description": "Allows auto enable CSS modules based on filename (https://github.com/webpack-contrib/css-loader#auto).",
  45. "anyOf": [
  46. {
  47. "instanceof": "RegExp"
  48. },
  49. {
  50. "instanceof": "Function"
  51. },
  52. {
  53. "type": "boolean"
  54. }
  55. ]
  56. },
  57. "mode": {
  58. "description": "Setup `mode` option (https://github.com/webpack-contrib/css-loader#mode).",
  59. "anyOf": [
  60. {
  61. "enum": ["local", "global", "pure"]
  62. },
  63. {
  64. "instanceof": "Function"
  65. }
  66. ]
  67. },
  68. "localIdentName": {
  69. "description": "Allows to configure the generated local ident name (https://github.com/webpack-contrib/css-loader#localidentname).",
  70. "type": "string",
  71. "minLength": 1
  72. },
  73. "localIdentContext": {
  74. "description": "Allows to redefine basic loader context for local ident name (https://github.com/webpack-contrib/css-loader#localidentcontext).",
  75. "type": "string",
  76. "minLength": 1
  77. },
  78. "localIdentHashPrefix": {
  79. "description": "Allows to add custom hash to generate more unique classes (https://github.com/webpack-contrib/css-loader#localidenthashprefix).",
  80. "type": "string",
  81. "minLength": 1
  82. },
  83. "localIdentRegExp": {
  84. "description": "Allows to specify custom RegExp for local ident name (https://github.com/webpack-contrib/css-loader#localidentregexp).",
  85. "anyOf": [
  86. {
  87. "type": "string",
  88. "minLength": 1
  89. },
  90. {
  91. "instanceof": "RegExp"
  92. }
  93. ]
  94. },
  95. "getLocalIdent": {
  96. "description": "Allows to specify a function to generate the classname (https://github.com/webpack-contrib/css-loader#getlocalident).",
  97. "instanceof": "Function"
  98. },
  99. "namedExport": {
  100. "description": "Enables/disables ES modules named export for locals (https://github.com/webpack-contrib/css-loader#namedexport).",
  101. "type": "boolean"
  102. },
  103. "exportGlobals": {
  104. "description": "Allows to export names from global class or id, so you can use that as local name (https://github.com/webpack-contrib/css-loader#exportglobals).",
  105. "type": "boolean"
  106. },
  107. "exportLocalsConvention": {
  108. "description": "Style of exported classnames (https://github.com/webpack-contrib/css-loader#localsconvention).",
  109. "enum": [
  110. "asIs",
  111. "camelCase",
  112. "camelCaseOnly",
  113. "dashes",
  114. "dashesOnly"
  115. ]
  116. },
  117. "exportOnlyLocals": {
  118. "description": "Export only locals (https://github.com/webpack-contrib/css-loader#exportonlylocals).",
  119. "type": "boolean"
  120. }
  121. }
  122. }
  123. ]
  124. },
  125. "icss": {
  126. "description": "Enables/Disables handling the CSS module interoperable import/export format ((https://github.com/webpack-contrib/css-loader#icss)",
  127. "type": "boolean"
  128. },
  129. "sourceMap": {
  130. "description": "Enables/Disables generation of source maps (https://github.com/webpack-contrib/css-loader#sourcemap).",
  131. "type": "boolean"
  132. },
  133. "importLoaders": {
  134. "description": "Enables/Disables or setups number of loaders applied before CSS loader (https://github.com/webpack-contrib/css-loader#importloaders).",
  135. "anyOf": [
  136. {
  137. "type": "boolean"
  138. },
  139. {
  140. "type": "string"
  141. },
  142. {
  143. "type": "integer"
  144. }
  145. ]
  146. },
  147. "esModule": {
  148. "description": "Use the ES modules syntax (https://github.com/webpack-contrib/css-loader#esmodule).",
  149. "type": "boolean"
  150. }
  151. },
  152. "type": "object"
  153. }