gulp-rev-napkin
v0.1.0
Published
Remove gulp-rev or gulp-rev-all file originals
Downloads
2,900
Maintainers
Readme
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.
Install
$ npm install --save-dev gulp-rev-napkin
Usage
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)
});
API
revNapkin(options)
Returns a transform stream.
options.verbose
Type: boolean
Default: true
revNapkin({verbose: false})
Enable/Disable gulp-rev-napkin
log messages.
options.force
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
.
Works with gulp-rev-napkin
License
MIT © Franky Martinez