rev-web-assets
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -1,2 +0,2 @@ | ||
//! rev-web-assets v0.0.4 ~~ https://github.com/center-key/rev-web-assets ~~ MIT License | ||
//! rev-web-assets v0.0.5 ~~ https://github.com/center-key/rev-web-assets ~~ MIT License | ||
@@ -3,0 +3,0 @@ export declare type Settings = { |
@@ -1,2 +0,2 @@ | ||
//! rev-web-assets v0.0.4 ~~ https://github.com/center-key/rev-web-assets ~~ MIT License | ||
//! rev-web-assets v0.0.5 ~~ https://github.com/center-key/rev-web-assets ~~ MIT License | ||
@@ -49,3 +49,3 @@ import crypto from 'crypto'; | ||
calcAssetHash(detail) { | ||
const hashLen = 7; | ||
const hashLen = 8; | ||
const contents = fs.readFileSync(detail.origin).toString(); | ||
@@ -52,0 +52,0 @@ const hash = crypto.createHash('md5').update(contents).digest('hex'); |
{ | ||
"name": "rev-web-assets", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Revision web asset filenames with cache busting content hash fingerprints", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -11,3 +11,3 @@ # rev-web-assets | ||
**rev-web-assets** updates the asset filenames of a website to contain a seven character hex hash. The command's console output includes a timestamp and formatting helpful in build systems. | ||
**rev-web-assets** updates the asset filenames of a website to contain a eight-digit hex hash. The command's console output includes a timestamp and formatting helpful in build systems. | ||
@@ -14,0 +14,0 @@ <img src=https://raw.githubusercontent.com/center-key/rev-web-assets/main/screenshot.png |
Sorry, the diff of this file is not supported yet
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
29680