Skip to content

Commit

Permalink
Merge pull request #167 from xzyfer/fix/node-sass-2
Browse files Browse the repository at this point in the history
Fix success callback check for generated sourcemap
  • Loading branch information
dlmanning committed Jan 14, 2015
2 parents 5d98bf6 + 013064d commit c1ed53d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -46,7 +46,7 @@ module.exports = function (options) {
// libsass gives us sources' paths relative to file;
// gulp-sourcemaps needs sources' paths relative to file.base;
// so alter the sources' paths to please gulp-sourcemaps.
obj.map = obj.map.version ? obj.map : JSON.parse(sourceMap);
obj.map = obj.map.version ? obj.map : JSON.parse(obj.map);
obj.map.sources = obj.map.sources.map(function(source) {
var abs = path.resolve(path.dirname(file.path), source);
return path.relative(file.base, abs);
Expand Down

0 comments on commit c1ed53d

Please sign in to comment.