Skip to content

Instantly share code, notes, and snippets.

@jdx
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jdx/11408596 to your computer and use it in GitHub Desktop.
Save jdx/11408596 to your computer and use it in GitHub Desktop.
Gulp less watch
var gulp = require('gulp');
var less = require('gulp-less');
gulp.task('less', function() {
return gulp.src('css/app.less')
.pipe(less())
.pipe(gulp.dest('dist'));
});
gulp.task('watch', ['less'], function() {
gulp.watch('css/**/*.less', ['less']);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment