This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Description
The documentation for the sourceMap option claims that
Setting the sourceMap option requires also setting the outFile option
However, in practice, if you set sourceMap to a string and don't set outFile, you still get a map buffer in the result. For example:
var sass = require('node-sass');
var result = sass.renderSync({
data: 'a {b: c}',
sourceMap: 'out.css.map'
});
console.log(result.map.toString());
prints
{
"version": 3,
"file": "stdin.css",
"sources": [
"stdin"
],
"names": [],
"mappings": "AAAA,AAAA,CAAC,CAAC;EAAC,CAAC,EAAE,CAAC,GAAE"
}