@typed/content-hash
Version:
Content hash a directory of HTML/JS/CSS files and other static assets
8 lines • 315 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.replaceHash = void 0;
function replaceHash(filePath, extension, hash) {
return filePath.replace(new RegExp(`${extension}$`), `.${hash}${extension}`);
}
exports.replaceHash = replaceHash;
//# sourceMappingURL=replaceHash.js.map