gulp-changed-old
Forked for compatibility with node 0.8.0, based off of the original gulp-changed
Only pass through changed files
No more wasting precious time on processing unchanged files.
Install
Install with npm
npm install --save-dev gulp-changed-old
Example
var gulp = ;var changed = ;var ngmin = ; // just as an example var SRC = 'src/*.js';var DEST = 'dist'; gulp;
API
changed(dest, options)
dest
Type: String
The destination directory. Same as you put into gulp.dest()
.
This is needed to be able to compare the current files with the destination files.
options
Type: Object
Set options.extension
value to specify extension of the destination files.
gulp.task('jade', function() {
gulp.src('./src/**/*.jade')
.pipe(changed('./app/', { extension: '.html' }))
.pipe(jade())
.pipe(gulp.dest('./app/'))
});
License
MIT © Sindre Sorhus