Skip to content

Instantly share code, notes, and snippets.

@mitchellbusby
Last active May 2, 2016 22:26
Show Gist options
  • Save mitchellbusby/3a59768f7f06abe5c83a3112a815f119 to your computer and use it in GitHub Desktop.
Save mitchellbusby/3a59768f7f06abe5c83a3112a815f119 to your computer and use it in GitHub Desktop.
var gulp = require('gulp');
var sass = require('gulp-sass');
gulp.task('sass', function() {
return gulp.src('./css/scss/*.scss')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('./css'));
});
gulp.task('sass:watch', function() {
gulp.watch(['./css/scss/*.scss'], ['sass']);
})
// General build task
gulp.task('build', ['sass'], function() {
});
// Developer mode
gulp.task('dev', ['sass','sass:watch'], function() {
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment