node-sass-tilde-importer
node-sass-tilde-importer copied to clipboard
Use current working directory if path is not set
Using the example in the readme below, the file configuration key is not set.
var sass = require('node-sass');
var tildeImporter = require('node-sass-tilde-importer');
var result = sass.renderSync({
data: scss_content,
importer: tildeImporter
});
This causes source to be set to the value "stdin", causing the importer to fail.
This PR reassigns the source to the current working directory of the process if it is set to "stdin".