Last active
August 29, 2015 14:21
-
-
Save ChrisBriggsy/94cbf6b0dfcf9cda2586 to your computer and use it in GitHub Desktop.
VS2015 - Gulp 101 - compile all .less to .CSS
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'); | |
var path = require('path'); | |
var plumber = require('gulp-plumber'); | |
gulp.task('less', function () { | |
return gulp.src('./Content/**/*.less') | |
.pipe(plumber()) | |
.pipe(less({ | |
paths: [path.join(__dirname, 'less', 'includes')] | |
})) | |
.pipe(gulp.dest('./content/')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment