Created
August 6, 2015 04:27
-
-
Save stolksdorf/69c2a1889abac4392113 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tnx!