options.json 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {
  2. "type": "object",
  3. "properties": {
  4. "injectType": {
  5. "description": "Allows to setup how styles will be injected into DOM (https://github.com/webpack-contrib/style-loader#injecttype).",
  6. "enum": [
  7. "styleTag",
  8. "singletonStyleTag",
  9. "lazyStyleTag",
  10. "lazySingletonStyleTag",
  11. "linkTag"
  12. ]
  13. },
  14. "attributes": {
  15. "description": "Adds custom attributes to tag (https://github.com/webpack-contrib/style-loader#attributes).",
  16. "type": "object"
  17. },
  18. "insert": {
  19. "description": "Inserts `<style>`/`<link>` at the given position (https://github.com/webpack-contrib/style-loader#insert).",
  20. "anyOf": [
  21. {
  22. "type": "string"
  23. },
  24. {
  25. "instanceof": "Function"
  26. }
  27. ]
  28. },
  29. "base": {
  30. "description": "Sets module ID base for DLLPlugin (https://github.com/webpack-contrib/style-loader#base).",
  31. "type": "number"
  32. },
  33. "esModule": {
  34. "description": "Use the ES modules syntax (https://github.com/webpack-contrib/css-loader#esmodule).",
  35. "type": "boolean"
  36. },
  37. "modules": {
  38. "type": "object",
  39. "additionalProperties": false,
  40. "properties": {
  41. "namedExport": {
  42. "description": "Enables/disables ES modules named export for locals (https://webpack.js.org/plugins/mini-css-extract-plugin/#namedexport).",
  43. "type": "boolean"
  44. }
  45. }
  46. }
  47. },
  48. "additionalProperties": false
  49. }