gulp-hash-src
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -78,3 +78,3 @@ // jshint forin:true, noarg:true, noempty:true, eqeqeq:true, bitwise:true, onevar: true, strict:true, undef:true, unused:true, curly:true, node:true, newcap:true | ||
if (!options || !options.build_dir) { | ||
throw "Need build_dir"; | ||
throw new Error("Need build_dir"); | ||
} | ||
@@ -124,2 +124,5 @@ | ||
if (!exists) { | ||
if (options.verbose) { | ||
console.log("[gulp-hash-src] \"" + full_path + "\" does not exist. Cannot hash."); | ||
} | ||
return next(); | ||
@@ -130,2 +133,5 @@ } | ||
if (is_dir) { | ||
if (options.verbose) { | ||
console.log("[gulp-hash-src] \"" + full_path + "\" is a directory. Cannot hash."); | ||
} | ||
return next(); | ||
@@ -132,0 +138,0 @@ } |
{ | ||
"name": "gulp-hash-src", | ||
"description": "Add hashes to links in HTML/CSS", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Nathan Rugg", |
@@ -87,2 +87,4 @@ # gulp-hash-src | ||
href="file.css?0123456789abcdef" | ||
verbose Whether or not to log info about missing files (default: false) | ||
``` | ||
@@ -89,0 +91,0 @@ |
8463
150
93