Created
August 25, 2015 14:32
-
-
Save DevelopIntelligenceBoulder/6ec4489c9a6186889f3e 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'), | |
less = require('gulp-less'), | |
concat = require('gulp-concat') | |
//sourcemaps = require('gulp-sourcemaps'), | |
//minifycss = require('gulp-minify-css') | |
gulp.task('less', function() { | |
gulp.src('./src/styles/*.less') | |
//.pipe(sourcemaps.init()) | |
.pipe(less()) | |
.pipe(concat('main.css')) | |
//.pipe(minifycss()) | |
//.pipe(sourcemaps.write()) | |
.pipe(gulp.dest('./src/styles')) | |
}); | |
gulp.task('watch', function() { | |
gulp.watch('./src/styles/*.less', ['less']); | |
}); | |
gulp.task('default', ['less', 'watch'], function() { | |
}) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment