gulp-save ![Build Status](https://camo.githubusercontent.com/d1c5ca2b9abd90928b29098d68b4700399b92869b3688c60d4e9679dfd3e9060/68747470733a2f2f7472617669732d63692e6f72672f64616e69656c68757361722f67756c702d736176652e7376673f6272616e63683d6d6173746572)
Store and restore files in stream.
$ npm install --save-dev gulp-save
var gulp = require('gulp');
var save = require('gulp-save');
var uglify = require('gulp-uglify');
gulp.task('default', function () {
return gulp.src('src/*.js')
.pipe(save('before-uglify', opts)) //cache all files here
.pipe(uglify())
.pipe(gulp.dest('dist'))
.pipe(save.restore('before-uglify')) //restore all files to the state when we cached them
.pipe(gulp.dest('dist'));
});
####cache
Type: string
Default: ``
Key where the stream will be cached.
####opts Same as vinyl clone options
####cache
Type: string
Default: ``
Key from where stream should be restored.
####cache
Type: string
Default: ``
Cache item to clear.
If save.clear
is called with no parameters, it will clear the whole cache.
MIT © Daniel Husar