Skip to content

Instantly share code, notes, and snippets.

@kbshl
Created September 16, 2014 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kbshl/c36d6ffdf2ad8f551a06 to your computer and use it in GitHub Desktop.
Save kbshl/c36d6ffdf2ad8f551a06 to your computer and use it in GitHub Desktop.
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'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment