options.json 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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. "auto": {
  40. "anyOf": [
  41. {
  42. "instanceof": "RegExp"
  43. },
  44. {
  45. "instanceof": "Function"
  46. },
  47. {
  48. "type": "boolean"
  49. }
  50. ]
  51. },
  52. "mode": {
  53. "anyOf": [
  54. {
  55. "enum": ["local", "global", "pure"]
  56. },
  57. {
  58. "instanceof": "Function"
  59. }
  60. ]
  61. },
  62. "exportGlobals": {
  63. "type": "boolean"
  64. },
  65. "localIdentName": {
  66. "type": "string"
  67. },
  68. "localIdentRegExp": {
  69. "anyOf": [
  70. {
  71. "type": "string"
  72. },
  73. {
  74. "instanceof": "RegExp"
  75. }
  76. ]
  77. },
  78. "context": {
  79. "type": "string"
  80. },
  81. "hashPrefix": {
  82. "type": "string"
  83. },
  84. "getLocalIdent": {
  85. "anyOf": [
  86. {
  87. "type": "boolean"
  88. },
  89. {
  90. "instanceof": "Function"
  91. }
  92. ]
  93. }
  94. }
  95. }
  96. ]
  97. },
  98. "sourceMap": {
  99. "description": "Enables/Disables generation of source maps (https://github.com/webpack-contrib/css-loader#sourcemap).",
  100. "type": "boolean"
  101. },
  102. "importLoaders": {
  103. "description": "Enables/Disables or setups number of loaders applied before CSS loader (https://github.com/webpack-contrib/css-loader#importloaders).",
  104. "anyOf": [
  105. {
  106. "type": "boolean"
  107. },
  108. {
  109. "type": "integer"
  110. }
  111. ]
  112. },
  113. "localsConvention": {
  114. "description": "Style of exported classnames (https://github.com/webpack-contrib/css-loader#localsconvention).",
  115. "enum": ["asIs", "camelCase", "camelCaseOnly", "dashes", "dashesOnly"]
  116. },
  117. "onlyLocals": {
  118. "description": "Export only locals (https://github.com/webpack-contrib/css-loader#onlylocals).",
  119. "type": "boolean"
  120. },
  121. "esModule": {
  122. "description": "Use the ES modules syntax (https://github.com/webpack-contrib/css-loader#esmodule).",
  123. "type": "boolean"
  124. }
  125. },
  126. "type": "object"
  127. }