Skip to content

Instantly share code, notes, and snippets.

@krisdages
Forked from jdx/gulpfile.js
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krisdages/c93bb43990b81ff2af8f to your computer and use it in GitHub Desktop.
Save krisdages/c93bb43990b81ff2af8f 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('css/app.less')
.pipe(less())
.pipe(gulp.dest('dist'));
});
gulp.task('watch', ['less'], function() {
gulp.watch('css/**/*.less', ['less']);
});
@krisdages
Copy link
Author

"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)."

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