
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
stitch-gulp-make-css-url-version
Advanced tools
a plugin for gulp.js to replace version for images in css files,the version should be file's md5 or time stamp;
npm install stitch-gulp-make-css-url-version
var makeUrlVer = require('stitch-gulp-make-css-url-version');
gulp.task('stylesheets', function() {
gulp.src('css/*.css')
.pipe(makeUrlVer())
.pipe(gulp.dest('dist'))
});
useDate :make version with time stamp
var makeUrlVer = require('stitch-gulp-make-css-url-version');
gulp.task('stylesheets', function() {
gulp.src('css/*.css')
.pipe(makeUrlVer({useDate:true}))
.pipe(gulp.dest('dist'))
});
assetsDir: specify the public directory for correct MD5 calculation in some specific cases
var makeUrlVer = require('stitch-gulp-make-css-url-version');
gulp.task('stylesheets', function() {
gulp.src('css/*.css')
.pipe(makeUrlVer({
assetsDir: __dirname + '/public'
}))
.pipe(gulp.dest('dist'))
});
/* loading */
.i-loading{width:32px;height:32px;background:url(../images/loading.gif) no-repeat;}
/* loading */
.i-loading{width:32px;height:32px;background:url(../images/loading.gif?v=Je0sUcMH0mhJPWdZdpHzXg%3D%3D) no-repeat}
FAQs
replace version for images in css files
The npm package stitch-gulp-make-css-url-version receives a total of 2 weekly downloads. As such, stitch-gulp-make-css-url-version popularity was classified as not popular.
We found that stitch-gulp-make-css-url-version 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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.