Commit 45219ee5 by Adeel

SourceMap: Resolve path w.r.t output directory.

parent 3688d1c0
...@@ -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