gulp-sourcemaps
Advanced tools
Comparing version 1.2.7 to 1.2.8
12
index.js
@@ -89,6 +89,8 @@ 'use strict'; | ||
try { | ||
console.log(PLUGIN_NAME + '-init: No source content for "' + source + '". Loading from file.'); | ||
if (options.debug) | ||
console.log(PLUGIN_NAME + '-init: No source content for "' + source + '". Loading from file.'); | ||
sourceContent = fs.readFileSync(absPath).toString(); | ||
} catch (e) { | ||
console.warn(PLUGIN_NAME + '-init: source file not found: ' + absPath); | ||
if (options.debug) | ||
console.warn(PLUGIN_NAME + '-init: source file not found: ' + absPath); | ||
} | ||
@@ -183,6 +185,8 @@ } | ||
try { | ||
console.log(PLUGIN_NAME + '-write: No source content for "' + sourceMap.sources[i] + '". Loading from file.'); | ||
if (options.debug) | ||
console.log(PLUGIN_NAME + '-write: No source content for "' + sourceMap.sources[i] + '". Loading from file.'); | ||
sourceMap.sourcesContent[i] = fs.readFileSync(sourcePath).toString(); | ||
} catch (e) { | ||
console.warn(PLUGIN_NAME + '-write: source file not found: ' + sourcePath); | ||
if (options.debug) | ||
console.warn(PLUGIN_NAME + '-write: source file not found: ' + sourcePath); | ||
} | ||
@@ -189,0 +193,0 @@ } |
{ | ||
"name": "gulp-sourcemaps", | ||
"version": "1.2.7", | ||
"version": "1.2.8", | ||
"description": "Source map support for Gulp.js", | ||
@@ -5,0 +5,0 @@ "homepage": "http://github.com/floridoo/gulp-sourcemaps", |
@@ -79,2 +79,5 @@ ## gulp-sourcemaps [![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][coveralls-image]][coveralls-url] | ||
- `debug` | ||
Set this to `true` to output debug messages (e.g. about missing source content). | ||
### Write Options | ||
@@ -157,2 +160,6 @@ | ||
- `debug` | ||
Set this to `true` to output debug messages (e.g. about missing source content). | ||
### Plugin developers only: How to add source map support to plugins | ||
@@ -159,0 +166,0 @@ |
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
15477
208
209