options.json 2.8 KB

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