
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
@holisticon/gulp-static-hash
Advanced tools
A gulp plugin for cache files by adding a hash version append their name(like a.js?v=hash) or create a hash named file
A gulp plugin for cache files by adding a hash version append their name(like a.js?v=hash).
npm install --save-dev @holisticon/gulp-static-hash
Or if you want to use the development version (nightly build), which maybe not stable!:
npm install @holisticon/gulp-static-hash@next --save-dev
var gulp = require('gulp');
var staticHash = require('gulp-static-hash');
gulp.task('static-hash-html', function () {
gulp.src('static/**/*.html')
.pipe(staticHash({asset: 'static'}))
.pipe(gulp.dest('dest'));
});
<link rel="stylesheet" href="main.min.css">
<script src="main.min.js"></script>
<img src="main.png" />
<link rel="stylesheet" href="main.min.css?v=8501b2b">
<script src="main.min.js?v=8501b2b"></script>
<img src="main.png?v=8501b2b" />
The path to assets in your project
The extension list need add hash version
The path to assets in your project used by create md5 file
FAQs
A gulp plugin for cache files by adding a hash version append their name(like a.js?v=hash) or create a hash named file
We found that @holisticon/gulp-static-hash demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.