Skip to content

Instantly share code, notes, and snippets.

@backflip
Created February 3, 2014 16:48
Show Gist options
  • Save backflip/8787511 to your computer and use it in GitHub Desktop.
Save backflip/8787511 to your computer and use it in GitHub Desktop.
Gulp.js: Process SASS to CSS and auto-prefix the necessary properties
var gulp = require('gulp'),
gutil = require('gulp-util'),
sass = require('gulp-ruby-sass'),
autoprefixer = require('gulp-autoprefixer');
gulp.task('css', function() {
return gulp.src('./source/assets/css/main.scss')
.pipe(sass({
style: gutil.env.production ? 'compressed' : 'expanded'
}))
.pipe(autoprefixer({
// autoprefixer config
}))
.pipe(gulp.dest('./build/assets/css'));
});
@gerritvanaaken
Copy link

Any ideas how to create proper sourcemaps with the prefix-modified version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment