Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 355 Bytes

rebuild-only-files-that-change.md

File metadata and controls

16 lines (13 loc) · 355 Bytes

Rebuild only files that change

With gulp-watch:

var gulp = require('gulp');
var sass = require('gulp-sass');
var watch = require('gulp-watch');

gulp.task('default', function() {
  return gulp.src('sass/*.scss')
    .pipe(watch('sass/*.scss'))
    .pipe(sass())
    .pipe(gulp.dest('dist'));
});