A
A
Anton2017-05-15 16:01:26
Node.js
Anton, 2017-05-15 16:01:26

Gulp-sass with sourcemap in Firefox, how to get map correctly?

Good afternoon! But ... cold, damn it.
Mastering the gallop, the first steps.
Essence: You need to configure the scss sourcemap for the fox, but so that it sees the nesting.
I have a problem with fox not seeing nested tags in the debugger, giving it the line number of the parent.
New tags that are not nested in the parent in scss, the fox sees correctly.
On chrome, everything works perfectly, numbers the lines as it should.

gulp.task('scss', function(){
  return gulp.src('app/scss/*.scss')
  .pipe(sourcemaps.init())
    .pipe(sass({outputStyle: 'compact'}))
  .pipe(sourcemaps.write('app/maps'))
  .pipe(gulp.dest('app/css'))

});

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question