gulp-delta
v0.1.1
Published
Only pass through changed files by comparing buffer contents
Downloads
2
Maintainers
Readme
gulp-delta
Only pass through delta filesby comparing buffer contents
Based off of sindresorhus's gulp-delta. Compares streams based on buffer contents incase the source of the stream was not a file.
Usage
var gulp = require('gulp');
var delta = require('gulp-delta');
var name = require('vinyl-source-stream');
var uglify = require('gulp-uglify');
var browersify = require('browserify');
var livereload = require('gulp-livereload')
var lr_server = require('tiny-lr')();
//Will only trigger live-reload and file writing if there has been code changes
gulp.task('js', function () {
browserify('./src/app.js')
.bundle()
.pipe(name('bundle.js'))
.pipe(uglify())
.pipe(delta('./prod'))
.pipe(gulp.dest('./prod'))
.pipe(livereload(lr_server));
});