correct the sourcemap url option

This commit is contained in:
Luke Page
2013-11-17 16:38:35 +00:00
parent 355cd7488e
commit ef4c2b75a9
2 changed files with 4 additions and 4 deletions

View File

@@ -175,7 +175,7 @@ args = args.filter(function (arg) {
break;
case 'source-map-url':
if (checkArgFunc(arg, match[2])) {
options.sourceMapUrl = match[2];
options.sourceMapURL = match[2];
}
break;
case 'rp':

View File

@@ -96,10 +96,10 @@
var sourceMapURL,
sourceMapContent = JSON.stringify(this._sourceMapGenerator.toJSON());
if (this._sourceMapFilename) {
sourceMapURL = this.normalizeFilename(this._sourceMapFilename);
} else if (this._sourceMapURL) {
if (this._sourceMapURL) {
sourceMapURL = this._sourceMapURL;
} else if (this._sourceMapFilename) {
sourceMapURL = this.normalizeFilename(this._sourceMapFilename);
}
if (this._writeSourceMap) {