konstantinbueschel
9/16/2014 - 3:05 PM

Gulp Receipe: Rebuild only files that change

Gulp Receipe: 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())
    .pipe(sass())
    .pipe(gulp.dest('dist'));
});