Skip to content

Instantly share code, notes, and snippets.

@DevelopIntelligenceBoulder
Created August 25, 2015 14:32
Show Gist options
  • Save DevelopIntelligenceBoulder/6ec4489c9a6186889f3e to your computer and use it in GitHub Desktop.
Save DevelopIntelligenceBoulder/6ec4489c9a6186889f3e to your computer and use it in GitHub Desktop.
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