DllReferencePlugin.json 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. {
  2. "additionalProperties": false,
  3. "anyOf": [
  4. {
  5. "required": [
  6. "manifest"
  7. ]
  8. },
  9. {
  10. "required": [
  11. "content"
  12. ]
  13. }
  14. ],
  15. "properties": {
  16. "context": {
  17. "description": "(absolute path) context of requests in the manifest (or content property)",
  18. "type": "string",
  19. "absolutePath": true
  20. },
  21. "manifest": {
  22. "description": "An object containing content and name or a string to the absolute path of the JSON manifest to be loaded upon compilation",
  23. "oneOf": [
  24. {
  25. "type": "object",
  26. "additionalProperties": false,
  27. "properties": {
  28. "content": {
  29. "description": "The mappings from request to module id",
  30. "minLength": 1,
  31. "type": "object"
  32. },
  33. "name": {
  34. "description": "The name where the dll is exposed (external name)",
  35. "minLength": 1,
  36. "type": "string"
  37. },
  38. "type": {
  39. "description": "The type how the dll is exposed (external type)",
  40. "minLength": 1,
  41. "type": "string"
  42. }
  43. }
  44. },
  45. {
  46. "type": "string",
  47. "absolutePath": true
  48. }
  49. ]
  50. },
  51. "content": {
  52. "description": "The mappings from request to module id (defaults to manifest.content)",
  53. "minLength": 1,
  54. "type": "object"
  55. },
  56. "name": {
  57. "description": "The name where the dll is exposed (external name, defaults to manifest.name)",
  58. "minLength": 1,
  59. "type": "string"
  60. },
  61. "type": {
  62. "description": "The way how the export of the dll bundle is used",
  63. "enum": [
  64. "require",
  65. "object"
  66. ]
  67. },
  68. "scope": {
  69. "description": "Prefix which is used for accessing the content of the dll",
  70. "minLength": 1,
  71. "type": "string"
  72. },
  73. "sourceType": {
  74. "description": "How the dll is exposed (libraryTarget, defaults to manifest.type)",
  75. "enum": [
  76. "var",
  77. "assign",
  78. "this",
  79. "window",
  80. "global",
  81. "commonjs",
  82. "commonjs2",
  83. "commonjs-module",
  84. "amd",
  85. "umd",
  86. "umd2",
  87. "jsonp"
  88. ]
  89. },
  90. "extensions": {
  91. "description": "Extensions used to resolve modules in the dll bundle (only used when using 'scope')",
  92. "type": "array",
  93. "items": {
  94. "description": "An extension",
  95. "type": "string"
  96. }
  97. }
  98. }
  99. }