gulp-tpl-rev
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "gulp-tpl-rev", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "template resource url revisioning by appending content hash to filenames: unicorn.css => unicorn.css?_v=1", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -45,4 +45,7 @@ "use strict"; | ||
var query = urlObject.query; | ||
query[options.name] = options.hash(urlObject.pathname); | ||
attr.value = url.format(urlObject); | ||
var hash = options.hash(urlObject.pathname); | ||
if (hash) { | ||
query[options.name] = hash; | ||
attr.value = url.format(urlObject); | ||
} | ||
} | ||
@@ -49,0 +52,0 @@ rewriter.emitStartTag(token); |
@@ -7,3 +7,3 @@ > Static asset revisioning by appending content hash to filenames | ||
``` | ||
$ npm install --save-dev gulp-rev | ||
$ npm install --save-dev gulp-tpl-rev | ||
``` | ||
@@ -10,0 +10,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
4124
6
71