options.json 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. {
  2. "title": "CSS Loader options",
  3. "additionalProperties": false,
  4. "properties": {
  5. "url": {
  6. "description": "Allows to enables/disables `url()`/`image-set()` functions handling.",
  7. "link": "https://github.com/webpack-contrib/css-loader#url",
  8. "anyOf": [
  9. {
  10. "type": "boolean"
  11. },
  12. {
  13. "type": "object",
  14. "properties": {
  15. "filter": {
  16. "instanceof": "Function"
  17. }
  18. },
  19. "additionalProperties": false
  20. }
  21. ]
  22. },
  23. "import": {
  24. "description": "Allows to enables/disables `@import` at-rules handling.",
  25. "link": "https://github.com/webpack-contrib/css-loader#import",
  26. "anyOf": [
  27. {
  28. "type": "boolean"
  29. },
  30. {
  31. "type": "object",
  32. "properties": {
  33. "filter": {
  34. "instanceof": "Function"
  35. }
  36. },
  37. "additionalProperties": false
  38. }
  39. ]
  40. },
  41. "modules": {
  42. "description": "Allows to enable/disable CSS Modules or ICSS and setup configuration.",
  43. "link": "https://github.com/webpack-contrib/css-loader#modules",
  44. "anyOf": [
  45. {
  46. "type": "boolean"
  47. },
  48. {
  49. "enum": ["local", "global", "pure", "icss"]
  50. },
  51. {
  52. "type": "object",
  53. "additionalProperties": false,
  54. "properties": {
  55. "auto": {
  56. "description": "Allows auto enable CSS modules based on filename.",
  57. "link": "https://github.com/webpack-contrib/css-loader#auto",
  58. "anyOf": [
  59. {
  60. "instanceof": "RegExp"
  61. },
  62. {
  63. "instanceof": "Function"
  64. },
  65. {
  66. "type": "boolean"
  67. }
  68. ]
  69. },
  70. "mode": {
  71. "description": "Setup `mode` option.",
  72. "link": "https://github.com/webpack-contrib/css-loader#mode",
  73. "anyOf": [
  74. {
  75. "enum": ["local", "global", "pure", "icss"]
  76. },
  77. {
  78. "instanceof": "Function"
  79. }
  80. ]
  81. },
  82. "localIdentName": {
  83. "description": "Allows to configure the generated local ident name.",
  84. "link": "https://github.com/webpack-contrib/css-loader#localidentname",
  85. "type": "string",
  86. "minLength": 1
  87. },
  88. "localIdentContext": {
  89. "description": "Allows to redefine basic loader context for local ident name.",
  90. "link": "https://github.com/webpack-contrib/css-loader#localidentcontext",
  91. "type": "string",
  92. "minLength": 1
  93. },
  94. "localIdentHashSalt": {
  95. "description": "Allows to add custom hash to generate more unique classes.",
  96. "link": "https://github.com/webpack-contrib/css-loader#localidenthashsalt",
  97. "type": "string",
  98. "minLength": 1
  99. },
  100. "localIdentHashFunction": {
  101. "description": "Allows to specify hash function to generate classes.",
  102. "link": "https://github.com/webpack-contrib/css-loader#localidenthashfunction",
  103. "type": "string",
  104. "minLength": 1
  105. },
  106. "localIdentHashDigest": {
  107. "description": "Allows to specify hash digest to generate classes.",
  108. "link": "https://github.com/webpack-contrib/css-loader#localidenthashdigest",
  109. "type": "string",
  110. "minLength": 1
  111. },
  112. "localIdentHashDigestLength": {
  113. "description": "Allows to specify hash digest length to generate classes.",
  114. "link": "https://github.com/webpack-contrib/css-loader#localidenthashdigestlength",
  115. "type": "number"
  116. },
  117. "hashStrategy": {
  118. "description": "Allows to specify should localName be used when computing the hash.",
  119. "link": "https://github.com/webpack-contrib/css-loader#hashstrategy",
  120. "enum": ["resource-path-and-local-name", "minimal-subset"]
  121. },
  122. "localIdentRegExp": {
  123. "description": "Allows to specify custom RegExp for local ident name.",
  124. "link": "https://github.com/webpack-contrib/css-loader#localidentregexp",
  125. "anyOf": [
  126. {
  127. "type": "string",
  128. "minLength": 1
  129. },
  130. {
  131. "instanceof": "RegExp"
  132. }
  133. ]
  134. },
  135. "getLocalIdent": {
  136. "description": "Allows to specify a function to generate the classname.",
  137. "link": "https://github.com/webpack-contrib/css-loader#getlocalident",
  138. "instanceof": "Function"
  139. },
  140. "namedExport": {
  141. "description": "Enables/disables ES modules named export for locals.",
  142. "link": "https://github.com/webpack-contrib/css-loader#namedexport",
  143. "type": "boolean"
  144. },
  145. "exportGlobals": {
  146. "description": "Allows to export names from global class or id, so you can use that as local name.",
  147. "link": "https://github.com/webpack-contrib/css-loader#exportglobals",
  148. "type": "boolean"
  149. },
  150. "exportLocalsConvention": {
  151. "description": "Style of exported classnames.",
  152. "link": "https://github.com/webpack-contrib/css-loader#localsconvention",
  153. "anyOf": [
  154. {
  155. "enum": [
  156. "asIs",
  157. "camelCase",
  158. "camelCaseOnly",
  159. "dashes",
  160. "dashesOnly"
  161. ]
  162. },
  163. {
  164. "instanceof": "Function"
  165. }
  166. ]
  167. },
  168. "exportOnlyLocals": {
  169. "description": "Export only locals.",
  170. "link": "https://github.com/webpack-contrib/css-loader#exportonlylocals",
  171. "type": "boolean"
  172. }
  173. }
  174. }
  175. ]
  176. },
  177. "sourceMap": {
  178. "description": "Allows to enable/disable source maps.",
  179. "link": "https://github.com/webpack-contrib/css-loader#sourcemap",
  180. "type": "boolean"
  181. },
  182. "importLoaders": {
  183. "description": "Allows enables/disables or setups number of loaders applied before CSS loader for `@import`/CSS Modules and ICSS imports.",
  184. "link": "https://github.com/webpack-contrib/css-loader#importloaders",
  185. "anyOf": [
  186. {
  187. "type": "boolean"
  188. },
  189. {
  190. "type": "string"
  191. },
  192. {
  193. "type": "integer"
  194. }
  195. ]
  196. },
  197. "esModule": {
  198. "description": "Use the ES modules syntax.",
  199. "link": "https://github.com/webpack-contrib/css-loader#esmodule",
  200. "type": "boolean"
  201. },
  202. "exportType": {
  203. "description": "Allows exporting styles as array with modules, string or constructable stylesheet (i.e. `CSSStyleSheet`).",
  204. "link": "https://github.com/webpack-contrib/css-loader#exporttype",
  205. "enum": ["array", "string", "css-style-sheet"]
  206. }
  207. },
  208. "type": "object"
  209. }