node-sass-tilde-importer icon indicating copy to clipboard operation
node-sass-tilde-importer copied to clipboard

Use current working directory if path is not set

Open karlhorky opened this issue 8 years ago • 0 comments

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".

karlhorky avatar Apr 11 '17 12:04 karlhorky