gulp-hash-src
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -71,2 +71,7 @@ // 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 | ||
function destination_path(build_dir, link) | ||
{ | ||
return p.join(build_dir, link); | ||
} | ||
p = fs_helper.p; | ||
@@ -97,2 +102,5 @@ | ||
} | ||
if (!options.destination_path) { | ||
options.destination_path = destination_path; | ||
} | ||
if (typeof options.query_name === "undefined") { | ||
@@ -122,4 +130,4 @@ options.query_name = "cbh"; /// "cache busting hash" | ||
full_path = p.join(options.build_dir, link); | ||
full_path = options.destination_path(options.build_dir, link); | ||
fs_helper.fs.exists(full_path, function onres(exists) | ||
@@ -126,0 +134,0 @@ { |
{ | ||
"name": "gulp-hash-src", | ||
"description": "Add hashes to links in HTML/CSS", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Nathan Rugg", |
9147
162