Created
October 30, 2015 17:52
-
-
Save mason-stewart/9b3d00c36e307722fdb2 to your computer and use it in GitHub Desktop.
cool
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'), | |
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