Created
September 17, 2014 15:57
-
-
Save darylldoyle/3f61250b7fdcb6ac53b4 to your computer and use it in GitHub Desktop.
Sourcemaps not working with autoprefixer
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 sass = require('gulp-ruby-sass'); | |
var plumber = require('gulp-plumber'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var postcss = require('gulp-postcss'); | |
gulp.task('sass', function() { | |
return gulp.src('uncompressed/scss/*.scss') | |
.pipe(plumber({ | |
errorHandler: onError | |
})) | |
.pipe(sass({sourcemap: true, sourcemapPath: '../../uncompressed/scss', style: 'compressed'})) | |
.pipe(sourcemaps.init()) | |
.pipe(postcss([autoprefixer])) | |
.pipe(sourcemaps.write('.')) | |
.pipe(size({title: 'css'})) | |
.pipe(gulp.dest('assets/css')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment