SourceMapDevToolPlugin.json 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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": [
  66. false,
  67. null
  68. ]
  69. },
  70. {
  71. "type": "string",
  72. "minLength": 1,
  73. "absolutePath": false
  74. }
  75. ]
  76. },
  77. "append": {
  78. "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",
  79. "oneOf": [
  80. {
  81. "description": "Append no SourceMap comment to the bundle, but still generate SourceMaps",
  82. "enum": [
  83. false,
  84. null
  85. ]
  86. },
  87. {
  88. "minLength": 1,
  89. "type": "string"
  90. }
  91. ]
  92. },
  93. "moduleFilenameTemplate": {
  94. "description": "Generator string or function to create identifiers of modules for the 'sources' array in the SourceMap",
  95. "oneOf": [
  96. {
  97. "description": "Custom function generating the identifer",
  98. "instanceof": "Function"
  99. },
  100. {
  101. "minLength": 1,
  102. "type": "string"
  103. }
  104. ]
  105. },
  106. "fallbackModuleFilenameTemplate": {
  107. "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",
  108. "oneOf": [
  109. {
  110. "description": "Custom function generating the identifer",
  111. "instanceof": "Function"
  112. },
  113. {
  114. "minLength": 1,
  115. "type": "string"
  116. }
  117. ]
  118. },
  119. "namespace": {
  120. "description": "Namespace prefix to allow multiple webpack roots in the devtools",
  121. "type": "string"
  122. },
  123. "module": {
  124. "description": "Indicates whether SourceMaps from loaders should be used (defaults to true)",
  125. "type": "boolean"
  126. },
  127. "columns": {
  128. "description": "Indicates whether column mappings should be used (defaults to true)",
  129. "type": "boolean"
  130. },
  131. "noSources": {
  132. "description": "Omit the 'sourceContents' array from the SourceMap",
  133. "type": "boolean"
  134. },
  135. "sourceRoot": {
  136. "description": "Provide a custom value for the 'sourceRoot' property in the SourceMap",
  137. "type": "string"
  138. },
  139. "publicPath": {
  140. "description": "Provide a custom public path for the SourceMapping comment",
  141. "type": "string"
  142. },
  143. "fileContext": {
  144. "description": "Path prefix to which the [file] placeholder is relative to",
  145. "type": "string"
  146. },
  147. "lineToLine": {
  148. "description": "(deprecated) try to map original files line to line to generated files",
  149. "anyOf": [
  150. {
  151. "type": "boolean"
  152. },
  153. {
  154. "description": "Simplify and speed up source mapping by using line to line source mappings for matched modules",
  155. "type": "object",
  156. "additionalProperties": false,
  157. "properties": {
  158. "test": {
  159. "description": "Include source maps for modules based on their extension (defaults to .js and .css)",
  160. "anyOf": [
  161. {
  162. "$ref": "#/definitions/rules"
  163. }
  164. ]
  165. },
  166. "include": {
  167. "description": "Include source maps for module paths that match the given value",
  168. "anyOf": [
  169. {
  170. "$ref": "#/definitions/rules"
  171. }
  172. ]
  173. },
  174. "exclude": {
  175. "description": "Exclude modules that match the given value from source map generation",
  176. "anyOf": [
  177. {
  178. "$ref": "#/definitions/rules"
  179. }
  180. ]
  181. }
  182. }
  183. }
  184. ]
  185. }
  186. }
  187. }