Professional Documents
Culture Documents
2
"items": {
"description": "the plugin name in .[0] and the options object
in .[1]",
"type": [ "string", "object" ]
}
}
},
"presets": {
"description": "List of presets (a set of plugins) to
load and use",
"type": "array",
"items": {
"type": ["string", "array"],
"items": {
"description": "the preset name in .[0]
and the options object in .[1]",
"type": ["string", "object"]
}
}
},
"retainLines": {
"default": false,
"description": "Retain line numbers. This will lead to
wacky code but is handy for scenarios where you can't use source maps. NOTE:
This will obviously not retain the columns.",
"type": "boolean"
},
"sourceFileName": {
"description": "Set sources[0] on returned source map.
(defaults to \"filenameRelative\")",
"type": "string"
},
"sourceMaps": {
"default": false,
"description": "If truthy, adds a map property to
returned output. If set to \"inline\", a comment with a sourceMappingURL
directive is added to the bottom of the returned code. If set to \"both\" then
a map property is returned as well as a source map comment appended.",
"type": ["string", "boolean"],
"enum": ["both", "inline", true, false]
},
"sourceMapTarget": {
"description": "Set file on returned source map.
(defaults to \"filenameRelative\")",
"type": "string"
},
"sourceRoot": {
"description": "The root from which all sources are
relative. (defaults to \"moduleRoot\")",
"type": "string"
}
}
}