diff --git a/index.js b/index.js index 42bea3f..fdeefab 100644 --- a/index.js +++ b/index.js @@ -19,7 +19,7 @@ module.exports = function(content, file, conf){ opts.include_paths.unshift( file.dirname ); opts.include_paths = opts.include_paths.map(function( dir ) { - if (dir[0] !== '/') { + if (path.resolve( dir ) != path.normalize( dir )) { dir = path.join(root, dir); } return path.resolve( dir ); @@ -34,4 +34,4 @@ module.exports = function(content, file, conf){ // return sass.renderSync(opts); return compile( content, file, opts ); -}; \ No newline at end of file +};