-
-
Save mccombs/822a590f4c89230cada3 to your computer and use it in GitHub Desktop.
Take a big Gulp!
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'), | |
less = require('gulp-less'), | |
livereload = require('gulp-livereload'), | |
notify = require('gulp-notify'); | |
minifycss = require('gulp-minify-css'); | |
gutil = require('gulp-util'); | |
gulp.task('less', function() { | |
return gulp.src(['../blog/css/*.less'], {base: '../blog/css/'}) | |
.pipe(less().on('error', function(err){ | |
gutil.log(err); | |
return notify().write(err); | |
this.emit('end'); | |
})) | |
.pipe(minifycss()) | |
.pipe(livereload()) | |
.pipe(gulp.dest('../blog/css/')) | |
}); | |
gulp.task('watch', function() { | |
livereload.listen(); | |
gulp.watch('../blog/css/*.less', ['less']); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment