Skip to content

Commit

Permalink
Merge pull request #15 from lildemon/patch-1
Browse files Browse the repository at this point in the history
Failed to detect root path under windows

受教了,多谢
  • Loading branch information
2betop committed Jan 12, 2015
2 parents b9af166 + 8080830 commit f4d045b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand All @@ -34,4 +34,4 @@ module.exports = function(content, file, conf){
// return sass.renderSync(opts);

return compile( content, file, opts );
};
};

0 comments on commit f4d045b

Please sign in to comment.