gulp-rev-napkin
Remove original files remaining from gulp-rev, or gulp-rev-all process. (file.revOrigPath)
Those plugins do a fantastic job but both leave behind the original un-hashed
files. gulp-rev-napkin
is for cleaning up after them.
$ npm install --save-dev gulp-rev-napkin
var gulp = require('gulp');
var rev = require('gulp-rev');
var revNapkin = require('gulp-rev-napkin');
gulp.task('default', function () {
return gulp.src('src/**/*.+(css|js|jpg|png|gif)')
.pipe(rev())
.pipe(gulp.dest('dest/'))
.pipe(revNapkin()); // Just place after gulp-rev(-all)
});
Returns a transform stream.
Type: boolean
Default: true
revNapkin({verbose: false})
Enable/Disable gulp-rev-napkin
log messages.
Type: boolean
Default: false
revNapkin({force: true})
Enable/Disable file removal outside of current working directory (cwd).
Note: gulp-rev-napkin
uses the terminal pwd
to determine the cwd
.
MIT © Franky Martinez