options.json 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. {
  2. "title": "Style Loader options",
  3. "type": "object",
  4. "properties": {
  5. "injectType": {
  6. "description": "Allows to setup how styles will be injected into DOM.",
  7. "link": "https://github.com/webpack-contrib/style-loader#injecttype",
  8. "enum": [
  9. "styleTag",
  10. "singletonStyleTag",
  11. "autoStyleTag",
  12. "lazyStyleTag",
  13. "lazySingletonStyleTag",
  14. "lazyAutoStyleTag",
  15. "linkTag"
  16. ]
  17. },
  18. "attributes": {
  19. "description": "Adds custom attributes to tag.",
  20. "link": "https://github.com/webpack-contrib/style-loader#attributes",
  21. "type": "object"
  22. },
  23. "insert": {
  24. "description": "Inserts `<style>`/`<link>` at the given position.",
  25. "link": "https://github.com/webpack-contrib/style-loader#insert",
  26. "anyOf": [
  27. {
  28. "type": "string"
  29. },
  30. {
  31. "instanceof": "Function"
  32. }
  33. ]
  34. },
  35. "base": {
  36. "description": "Sets module ID base for DLLPlugin.",
  37. "link": "https://github.com/webpack-contrib/style-loader#base",
  38. "type": "number"
  39. },
  40. "esModule": {
  41. "description": "Use the ES modules syntax.",
  42. "link": "https://github.com/webpack-contrib/css-loader#esmodule",
  43. "type": "boolean"
  44. },
  45. "styleTagTransform": {
  46. "description": "Transform tag and css when insert 'style' tag into the DOM",
  47. "link": "https://github.com/webpack-contrib/style-loader#styleTagTransform",
  48. "anyOf": [
  49. {
  50. "type": "string"
  51. },
  52. {
  53. "instanceof": "Function"
  54. }
  55. ]
  56. }
  57. },
  58. "additionalProperties": false
  59. }