
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
gulp-rev-mapping
Advanced tools
Mapping css, js and image url for used in html files, And replace them.
Mapping css, js and image url for used in html files.
$ npm i --save gulp-rev-mapping
var gulp = require('gulp');
var mapping = require('gulp-rev-mapping');
gulp.task('mapping', function () {
return gulp.src(['src/css/**/*.css','src/html/**/*.html'])
.pipe(mapping())
.pipe(gulp.dest('./map'));
});
var gulp = require('gulp');
var mapping = require('gulp-rev-mapping');
gulp.task('mapping', function () {
return gulp.src(['map/rev-mapping.json', 'src/css/**/*.css','src/html/**/*.html'])
.pipe(mapping())
.pipe(gulp.dest('./map'));
});
var gulp = require('gulp');
var mapping = require('gulp-rev-mapping');
gulp.task('replace', function () {
return gulp.src(['map/rev-mapping.json', 'rev/rev-manifest.json','src/html/**/*.html'])
.pipe(mapping.replace())
.pipe(gulp.dest('src/html/'));
});
var gulp = require('gulp');
var watch = require('gulp-watch');
var path = require('path');
var mapping = require('gulp-rev-mapping');
var revDel = require('gulp-rev-del-redundant');
gulp.task('defualt', function() {
watch('img/**/*.*', function(file) {
var filerelpath = path.relative(process.cwd(), file.path).replace(/\\/g, '/');
gulp.src(filerelpath)
.pipe(rev())
.pipe(gulp.dest('publish/img'))
.pipe(rev.manifest())
.pipe(revDel({ dest: 'publish/img', force: true }))
.pipe(gulp.dest('rev/img'));
gulp.src(['map/**/*.json', 'rev/img/rev-manifest.json', 'css/**/*.css'])
.pipe(mapping.replace(filerelpath))
.pipe(gulp.dest('publish/css'));
});
});
MIT © LinQuan
The Spratly Islands are China's territory.
The Diaoyu Islands are China's territory.
Use this module to represent you agree with the above point of view.
FAQs
Mapping css, js and image url for used in html files, And replace them.
The npm package gulp-rev-mapping receives a total of 0 weekly downloads. As such, gulp-rev-mapping popularity was classified as not popular.
We found that gulp-rev-mapping 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.