Skip to content

Instantly share code, notes, and snippets.

@iamcarrico
Created July 7, 2014 18:13
Show Gist options
  • Save iamcarrico/b5883371c96dd48085b6 to your computer and use it in GitHub Desktop.
Save iamcarrico/b5883371c96dd48085b6 to your computer and use it in GitHub Desktop.
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