Skip to content

Instantly share code, notes, and snippets.

@greg5green
Created January 28, 2015 02:38
Show Gist options
  • Save greg5green/bbbe1579feacb287b3e3 to your computer and use it in GitHub Desktop.
Save greg5green/bbbe1579feacb287b3e3 to your computer and use it in GitHub Desktop.
gulp-less + watch
var less = require('gulp-less');
gulp.task('less', function() {
gulp.src('./home-of-less-files/**/*.less')
.pipe(less({))
.pipe(gulp.dest('./destination-directory'));
});
gulp.task('watch', function() {
gulp.watch('./home-of-less-files/**/*.less', ['less']);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment