Skip to content

Remove gulp-rev, and gulp-rev-all leftovers (the original non-hashed files).

License

Notifications You must be signed in to change notification settings

mbbender/gulp-rev-napkin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Dependencies Coverage Status npm version

NPM

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

About

Remove gulp-rev, and gulp-rev-all leftovers (the original non-hashed files).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%