Closed
Description
Hi,
Im trying to use gulp-autoprefixer in combination with gulp-sass and gulp-sourcemaps.
My gulpfile task looks like this:
gulp.task('sass', function () {
gulp.src( config.SASS.src )
.pipe( plugins.sourcemaps.init() )
.pipe( plugins.sass() )
.pipe( plugins.autoprefixer (
"last 1 versions", "> 10%", "ie 9"
))
.pipe( plugins.sourcemaps.write('./') )
.pipe( gulp.dest( config.SASS.build ) )
.pipe( browserSync.reload({ stream: true }) );
});
The plugins.
prefix is related to gulp-load-plugins
Without gulp-sass the task runs fine, but with it it throws the following error:
[08:26:51] Finished 'sass' after 3.32 ms
gulp-sourcemap-write: source file not found:/Users/luismartins/Sites/00_LAB/wp-multisite/wp-content/themes/wip053/src/sass/main.css
Should I be running autoprefixer as a separate task after CSS compilation?
Thanks.