Skip to content

Instantly share code, notes, and snippets.

@mason-stewart
Created October 30, 2015 17:52
Show Gist options
  • Save mason-stewart/9b3d00c36e307722fdb2 to your computer and use it in GitHub Desktop.
Save mason-stewart/9b3d00c36e307722fdb2 to your computer and use it in GitHub Desktop.
cool
var gulp = require('gulp'),
connect = require('gulp-connect'),
sass = require('gulp-sass');
gulp.task('sass', function () {
gulp.src('./sass/**/*.scss')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('./css'));
});
gulp.task('copy-css', ['sass'], function(){
gulp.src('./css/**/*')
.pipe(gulp.dest('./tmp'))
})
gulp.task('sass:watch', function () {
gulp.watch('./sass/**/*.scss', ['sass', 'copy-css']);
});
gulp.task('connect', function() {
connect.server();
});
gulp.task('default', ['connect', 'sass:watch', 'sass']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment