Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

SourceMapDevToolPlugin.json 5.2KB

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