I can't seem to get my sourcemaps up and working correctly with gulp-ruby-sass. They generate, and I can see the comment at the end of my css file, but Chrome doesn't read them despite options being enabled in the settings.
Thanks for any help,
var gulp = require('gulp');
var gutil = require('gulp-util');
var sass = require('gulp-ruby-sass');
gulp.task('sass', function(){
  gulp.src('./assets/scss/main.scss')
      .pipe(sass({noCache: true, sourcemapPath: '../scss'}))
      .on('error', function(err){console.log(err.message);})
      .pipe(gulp.dest('./assets/css/'));
});
gulp.task('watch',function(){
  gulp.watch('./assets/**/*.scss', ['sass']);
});
gulp.task('default', ['sass','watch']);
                Refering to the API doc
sourcemap: true or any other valid value (auto, file, inline)sourcemapPath, which you already havegulp.task('sass', function(){
  gulp.src('./assets/scss/main.scss')
      .pipe(sass({
        noCache: true, 
        sourcemapPath: '../scss',
        sourcemap: true
      }))
      .on('error', function(err){console.log(err.message);})
      .pipe(gulp.dest('./assets/css/'));
});
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With