gulp-rev-keep-exists
v1.0.4
Published
Keep existing files, Not change the existing gulp-rev generated file.
Downloads
7
Readme
gulp-rev-keep-exists
Keep existing files, Not change the existing gulp-rev generated file.
Install
$ npm i --save gulp-rev-keep-exists
Usage
var gulp = require('gulp');
var rev = require('gulp-rev');
var revKeep = require('gulp-rev-keep-exists');
var revDel = require('gulp-rev-del-redundant');
gulp.task('default', function () {
return gulp.src(['src/css/**/*.css','src/js/**/*.js'])
.pipe(rev())
.pipe(revKeep('dest')) //<-- keep
.pipe(gulp.dest('dest'))
.pipe(revKeep.restore()) //<-- restore keep
.pipe(rev.manifest())
.pipe(gulp.dest('rev'))
.pipe(revDel({ dest: 'dest', force: true }));
});
License
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.