Created
July 9, 2014 07:52
-
-
Save josh-taylor/7433067d1362f6f39d7d to your computer and use it in GitHub Desktop.
This file contains hidden or 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'); | |
| var compass = require('gulp-compass'); | |
| var prefix = require('gulp-autoprefixer'); | |
| var livereload = require('gulp-livereload'); | |
| gulp.task('styles', function() { | |
| return gulp.src('styles/*.scss') | |
| .pipe(compass({ | |
| css: '.', | |
| sass: 'styles', | |
| fonts: 'fonts', | |
| images: 'images', | |
| comments: false | |
| })) | |
| .on('error', function(err) { | |
| console.log(err.message); | |
| }) | |
| .pipe(prefix('last 3 versions')) | |
| .pipe(gulp.dest('.')) | |
| .pipe(livereload()); | |
| }); | |
| gulp.task('watch', function() { | |
| gulp.watch('styles/**/*.scss', ['styles']); | |
| }); | |
| gulp.task('default', ['styles', 'watch']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment