Skip to content

Instantly share code, notes, and snippets.

@stolksdorf
Created August 6, 2015 04:27
Show Gist options
  • Save stolksdorf/69c2a1889abac4392113 to your computer and use it in GitHub Desktop.
Save stolksdorf/69c2a1889abac4392113 to your computer and use it in GitHub Desktop.
var gulp = require('gulp');
var less = require('gulp-less');
gulp.task('less', function() {
return gulp.src('./style.less') // only compile the entry file
.pipe(less())
.pipe(gulp.dest('./build'))
});
gulp.task('watch', function() {
gulp.watch('./*.less', ['less']); // Watch all the .less files, then run the less task
});
gulp.task('default', ['watch']); // Default will run the 'entry' watch task
@jimmy18dev
Copy link

Thank You.

@estebanzen
Copy link

tnx!

@thomaskarl
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment