gulp-sourcemaps
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -38,2 +38,3 @@ 'use strict'; | ||
sourcePath = path.dirname(file.path); | ||
fileContent = convert.removeComments(fileContent); | ||
} else { | ||
@@ -44,7 +45,9 @@ // look for source map comment referencing a source map file | ||
var mapFile; | ||
if (mapComment) | ||
if (mapComment) { | ||
mapFile = path.resolve(path.dirname(file.path), mapComment[1] || mapComment[2]); | ||
fileContent = convert.removeMapFileComments(fileContent); | ||
// if no comment try map file with same name as source file | ||
else | ||
} else { | ||
mapFile = file.path + '.map'; | ||
} | ||
@@ -87,3 +90,3 @@ // sources in external map are relative to map file | ||
// remove source map comment from source | ||
file.contents = new Buffer(convert.removeComments(fileContent), 'utf8'); | ||
file.contents = new Buffer(fileContent, 'utf8'); | ||
} | ||
@@ -90,0 +93,0 @@ } |
{ | ||
"name": "gulp-sourcemaps", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Source map support for Gulp.js", | ||
@@ -5,0 +5,0 @@ "homepage": "http://github.com/floridoo/gulp-sourcemaps", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13337
181