Skip to content

Commit

Permalink
#21 set to option
Browse files Browse the repository at this point in the history
  • Loading branch information
w0rm committed Apr 1, 2015
1 parent 1fb26f6 commit 2ce98a6
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 @@ -31,7 +31,7 @@ module.exports = function (processors, options) {
}
}

opts.from = file.path
opts.from = opts.to = file.path

// Generate separate source map for gulp-sourcemap
if (file.sourceMap) {
Expand All @@ -56,7 +56,7 @@ module.exports = function (processors, options) {
map = result.map.toJSON()
map.file = file.relative
map.sources = [].map.call(map.sources, function (source) {
return path.relative(file.base, source)
return path.join(path.dirname(file.relative), source)
})
applySourceMap(file, map)
}
Expand Down

0 comments on commit 2ce98a6

Please sign in to comment.