You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DllReferencePlugin.json 2.4 KiB

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