Created
July 7, 2014 18:13
-
-
Save iamcarrico/b5883371c96dd48085b6 to your computer and use it in GitHub Desktop.
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'); | |
var paths = require('compass-options').dirs(); | |
var compass = require('gulp-compass'); | |
var minifyCSS = require('gulp-minify-css'); | |
var prefix = require('gulp-autoprefixer'); | |
var rename = require('gulp-rename'); | |
gulp.task('sass', function() { | |
return gulp.src(paths.sass + '/**/*.scss') | |
.pipe(compass({ | |
config_file: './config.rb', | |
css: paths.css, | |
sass: paths.sass, | |
bundle_exec: true, | |
time: true | |
})) | |
.pipe(prefix(["last 1 version", "> 1%", "ie 8"])) | |
.pipe(gulp.dest(paths.css)) | |
.pipe(rename({ suffix: '.min' })) | |
.pipe(minifyCSS()) | |
.pipe(gulp.dest(paths.css)); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment