Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
gulp-rev-delete-original
Advanced tools
Delete the original file rewritten by gulp-rev or gulp-rev-all.
npm install --save-dev gulp-rev-delete-original
var gulp = require('gulp');
var rev = require('gulp-rev');
var revcss = require('gulp-rev-css-url');
var revdel = require('gulp-rev-delete-original');
gulp.task('rev', function () {
return gulp.src('./app/**/*')
.pipe(rev())
.pipe(revcss())
.pipe(revdel())
.pipe(gulp.dest('./build/'))
;
});
A filter RegExp
or function
that allows you to exclude certain files from being deleted.
RegExp:
revdel({
exclude: /build\.css$/
});
Function:
revdel({
exclude: function(file) {
if (/build\.css$/.test(file.name)) {
return true; //if you want to exclude the file from being deleted
}
}
});
FAQs
Delete the original file rewritten by gulp-rev.
The npm package gulp-rev-delete-original receives a total of 3,595 weekly downloads. As such, gulp-rev-delete-original popularity was classified as popular.
We found that gulp-rev-delete-original demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.