Created
February 3, 2014 16:48
-
-
Save backflip/8787511 to your computer and use it in GitHub Desktop.
Gulp.js: Process SASS to CSS and auto-prefix the necessary properties
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'), | |
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')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Any ideas how to create proper sourcemaps with the prefix-modified version?