webpack/schemas/plugins/SourceMapDevToolPlugin.json

188 lines
5.1 KiB
JSON
Raw Normal View History

2017-10-28 05:23:38 +08:00
{
2017-11-19 18:45:15 +08:00
"type": "object",
"additionalProperties": false,
"definitions": {
"rule": {
"oneOf": [
{
2017-11-19 20:31:33 +08:00
"instanceof": "RegExp"
2017-11-19 18:45:15 +08:00
},
{
"minLength": 1,
"type": "string"
}
]
},
"rules": {
"oneOf": [
{
"items": {
2017-11-19 20:31:33 +08:00
"description": "A rule condition",
"anyOf": [
{
"$ref": "#/definitions/rule"
}
]
2017-11-19 18:45:15 +08:00
},
"type": "array"
},
{
"$ref": "#/definitions/rule"
}
]
}
},
"properties": {
"test": {
"description": "Include source maps for modules based on their extension (defaults to .js and .css)",
2017-11-19 20:31:33 +08:00
"anyOf": [
{
"$ref": "#/definitions/rules"
}
]
2017-11-19 18:45:15 +08:00
},
"include": {
"description": "Include source maps for module paths that match the given value",
2017-11-19 20:31:33 +08:00
"anyOf": [
{
"$ref": "#/definitions/rules"
}
]
2017-11-19 18:45:15 +08:00
},
"exclude": {
"description": "Exclude modules that match the given value from source map generation",
2017-11-19 20:31:33 +08:00
"anyOf": [
{
"$ref": "#/definitions/rules"
}
]
2017-11-19 18:45:15 +08:00
},
"filename": {
"description": "Defines the output filename of the SourceMap (will be inlined if no value is provided)",
"oneOf": [
{
2017-11-20 17:17:34 +08:00
"description": "Disable separate SourceMap file and inline SourceMap as DataUrl",
2017-11-19 20:31:33 +08:00
"enum": [
2017-11-20 17:17:34 +08:00
false,
2017-11-19 20:31:33 +08:00
null
]
2017-11-19 18:45:15 +08:00
},
{
2017-11-20 17:17:34 +08:00
"type": "string",
2017-11-19 18:45:15 +08:00
"minLength": 1,
2017-11-20 17:17:34 +08:00
"absolutePath": false
2017-11-19 18:45:15 +08:00
}
]
},
"append": {
"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",
"oneOf": [
{
2017-11-20 17:17:34 +08:00
"description": "Append no SourceMap comment to the bundle, but still generate SourceMaps",
2017-11-19 20:31:33 +08:00
"enum": [
false,
null
]
2017-11-19 18:45:15 +08:00
},
{
"minLength": 1,
"type": "string"
}
]
},
"moduleFilenameTemplate": {
2017-11-20 17:17:34 +08:00
"description": "Generator string or function to create identifiers of modules for the 'sources' array in the SourceMap",
2017-11-19 18:45:15 +08:00
"oneOf": [
{
2017-11-20 17:17:34 +08:00
"description": "Custom function generating the identifer",
2017-11-19 18:45:15 +08:00
"instanceof": "Function"
},
{
"minLength": 1,
"type": "string"
}
]
},
"fallbackModuleFilenameTemplate": {
2017-11-20 17:17:34 +08:00
"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",
2017-11-19 18:45:15 +08:00
"oneOf": [
{
2017-11-20 17:17:34 +08:00
"description": "Custom function generating the identifer",
2017-11-19 18:45:15 +08:00
"instanceof": "Function"
},
{
"minLength": 1,
"type": "string"
}
]
},
2017-11-28 17:04:57 +08:00
"namespace": {
"description": "Namespace prefix to allow multiple webpack roots in the devtools",
"type": "string"
},
2017-11-19 18:45:15 +08:00
"module": {
2017-11-20 17:17:34 +08:00
"description": "Indicates whether SourceMaps from loaders should be used (defaults to true)",
2017-11-19 18:45:15 +08:00
"type": "boolean"
},
"columns": {
"description": "Indicates whether column mappings should be used (defaults to true)",
"type": "boolean"
},
"noSources": {
2017-11-20 17:17:34 +08:00
"description": "Omit the 'sourceContents' array from the SourceMap",
2017-11-19 18:45:15 +08:00
"type": "boolean"
},
2017-11-20 17:17:34 +08:00
"sourceRoot": {
"description": "Provide a custom value for the 'sourceRoot' property in the SourceMap",
"type": "string"
2017-11-19 18:45:15 +08:00
},
"publicPath": {
"description": "Provide a custom public path for the SourceMapping comment",
"type": "string"
},
"fileContext": {
"description": "Path prefix to which the [file] placeholder is relative to",
"type": "string"
},
2017-11-20 17:17:34 +08:00
"lineToLine": {
"description": "(deprecated) try to map original files line to line to generated files",
"anyOf": [
{
"type": "boolean"
},
{
"description": "Simplify and speed up source mapping by using line to line source mappings for matched modules",
"type": "object",
"additionalProperties": false,
"properties": {
"test": {
"description": "Include source maps for modules based on their extension (defaults to .js and .css)",
"anyOf": [
{
"$ref": "#/definitions/rules"
}
]
},
"include": {
"description": "Include source maps for module paths that match the given value",
"anyOf": [
{
"$ref": "#/definitions/rules"
}
]
},
"exclude": {
"description": "Exclude modules that match the given value from source map generation",
"anyOf": [
{
"$ref": "#/definitions/rules"
}
]
}
}
}
]
2017-11-19 18:45:15 +08:00
}
}
2017-10-28 05:23:38 +08:00
}