Commit 0b1df747 by Andrew Nesbitt

Merge pull request #411 from am11/master

SourceMap: Resolve path w.r.t output directory
parents 3688d1c0 45219ee5
...@@ -57,6 +57,8 @@ var prepareOptions = function (options) { ...@@ -57,6 +57,8 @@ var prepareOptions = function (options) {
sourceMap = options.sourceMap; sourceMap = options.sourceMap;
if (typeof sourceMap !== 'string' && sourceComments === 'map') { if (typeof sourceMap !== 'string' && sourceComments === 'map') {
sourceMap = ''; sourceMap = '';
} else if (options.outFile && sourceMap) {
sourceMap = path.resolve(path.dirname(options.outFile), sourceMap);
} }
prepareStats(options, stats); prepareStats(options, stats);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment