cache-busting-assets
Advanced tools
Comparing version 0.0.2 to 0.0.3
const crypto = require('crypto'); | ||
const fs = require('fs'); | ||
const process = require('process'); | ||
const cbDebug = require('debug')('cache-bust:debug'); | ||
@@ -16,3 +16,3 @@ const generateHash = (dir, sourceFile) => { | ||
const destination = sourceFile.replace(fileName, `${fileName}-${hash}`); | ||
console.log(`${dir}${sourceFile}`, `${dir}${destination}`); | ||
cbDebug(`${dir}${sourceFile}`, `${dir}${destination}`); | ||
fs.copyFile(`${dir}${sourceFile}`, `${dir}${destination}`, (copyErr) => { | ||
@@ -19,0 +19,0 @@ if (copyErr) { |
{ | ||
"name": "cache-busting-assets", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
3195
4