-
-
Save krisdages/c93bb43990b81ff2af8f 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('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
"We watch for any less file but only compile app.less. This is because with LESS you would likely @import whatever other files you need. This strategy will not work for JavaScript (but we’ll cover that later)."