No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

SourceMapDevToolPlugin.json 5.1 KiB

hace 3 años
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. {
  2. "type": "object",
  3. "additionalProperties": false,
  4. "definitions": {
  5. "rule": {
  6. "oneOf": [
  7. {
  8. "instanceof": "RegExp"
  9. },
  10. {
  11. "minLength": 1,
  12. "type": "string"
  13. }
  14. ]
  15. },
  16. "rules": {
  17. "oneOf": [
  18. {
  19. "items": {
  20. "description": "A rule condition",
  21. "anyOf": [
  22. {
  23. "$ref": "#/definitions/rule"
  24. }
  25. ]
  26. },
  27. "type": "array"
  28. },
  29. {
  30. "$ref": "#/definitions/rule"
  31. }
  32. ]
  33. }
  34. },
  35. "properties": {
  36. "test": {
  37. "description": "Include source maps for modules based on their extension (defaults to .js and .css)",
  38. "anyOf": [
  39. {
  40. "$ref": "#/definitions/rules"
  41. }
  42. ]
  43. },
  44. "include": {
  45. "description": "Include source maps for module paths that match the given value",
  46. "anyOf": [
  47. {
  48. "$ref": "#/definitions/rules"
  49. }
  50. ]
  51. },
  52. "exclude": {
  53. "description": "Exclude modules that match the given value from source map generation",
  54. "anyOf": [
  55. {
  56. "$ref": "#/definitions/rules"
  57. }
  58. ]
  59. },
  60. "filename": {
  61. "description": "Defines the output filename of the SourceMap (will be inlined if no value is provided)",
  62. "oneOf": [
  63. {
  64. "description": "Disable separate SourceMap file and inline SourceMap as DataUrl",
  65. "enum": [false, null]
  66. },
  67. {
  68. "type": "string",
  69. "minLength": 1,
  70. "absolutePath": false
  71. }
  72. ]
  73. },
  74. "append": {
  75. "description": "Appends the given value to the original asset. Usually the #sourceMappingURL comment. [url] is replaced with a URL to the source map file. false disables the appending",
  76. "oneOf": [
  77. {
  78. "description": "Append no SourceMap comment to the bundle, but still generate SourceMaps",
  79. "enum": [false, null]
  80. },
  81. {
  82. "minLength": 1,
  83. "type": "string"
  84. }
  85. ]
  86. },
  87. "moduleFilenameTemplate": {
  88. "description": "Generator string or function to create identifiers of modules for the 'sources' array in the SourceMap",
  89. "oneOf": [
  90. {
  91. "description": "Custom function generating the identifer",
  92. "instanceof": "Function"
  93. },
  94. {
  95. "minLength": 1,
  96. "type": "string"
  97. }
  98. ]
  99. },
  100. "fallbackModuleFilenameTemplate": {
  101. "description": "Generator string or function to create identifiers of modules for the 'sources' array in the SourceMap used only if 'moduleFilenameTemplate' would result in a conflict",
  102. "oneOf": [
  103. {
  104. "description": "Custom function generating the identifer",
  105. "instanceof": "Function"
  106. },
  107. {
  108. "minLength": 1,
  109. "type": "string"
  110. }
  111. ]
  112. },
  113. "namespace": {
  114. "description": "Namespace prefix to allow multiple webpack roots in the devtools",
  115. "type": "string"
  116. },
  117. "module": {
  118. "description": "Indicates whether SourceMaps from loaders should be used (defaults to true)",
  119. "type": "boolean"
  120. },
  121. "columns": {
  122. "description": "Indicates whether column mappings should be used (defaults to true)",
  123. "type": "boolean"
  124. },
  125. "noSources": {
  126. "description": "Omit the 'sourceContents' array from the SourceMap",
  127. "type": "boolean"
  128. },
  129. "sourceRoot": {
  130. "description": "Provide a custom value for the 'sourceRoot' property in the SourceMap",
  131. "type": "string"
  132. },
  133. "publicPath": {
  134. "description": "Provide a custom public path for the SourceMapping comment",
  135. "type": "string"
  136. },
  137. "fileContext": {
  138. "description": "Path prefix to which the [file] placeholder is relative to",
  139. "type": "string"
  140. },
  141. "lineToLine": {
  142. "description": "(deprecated) try to map original files line to line to generated files",
  143. "anyOf": [
  144. {
  145. "type": "boolean"
  146. },
  147. {
  148. "description": "Simplify and speed up source mapping by using line to line source mappings for matched modules",
  149. "type": "object",
  150. "additionalProperties": false,
  151. "properties": {
  152. "test": {
  153. "description": "Include source maps for modules based on their extension (defaults to .js and .css)",
  154. "anyOf": [
  155. {
  156. "$ref": "#/definitions/rules"
  157. }
  158. ]
  159. },
  160. "include": {
  161. "description": "Include source maps for module paths that match the given value",
  162. "anyOf": [
  163. {
  164. "$ref": "#/definitions/rules"
  165. }
  166. ]
  167. },
  168. "exclude": {
  169. "description": "Exclude modules that match the given value from source map generation",
  170. "anyOf": [
  171. {
  172. "$ref": "#/definitions/rules"
  173. }
  174. ]
  175. }
  176. }
  177. }
  178. ]
  179. }
  180. }
  181. }