A
A
Anton2017-09-01 10:55:41
gulp.js
Anton, 2017-09-01 10:55:41

Why browsers neither Chrome nor Mozilla developer see sourcemap sass?

Task

gulp.task('sass', function() {
  return gulp.src('app/sass/**/*.{sass, scss}')
  .pipe(sourcemaps.init())
  .pipe(sass({
    outputStyle: 'compact',
    includePaths: ['node_modules/susy/sass']		
  }).on("error", notify.onError()))
  .pipe(gcmq())
  .pipe(autoprefixer(['last 15 versions', '> 1%', 'ie 8', 'ie 7'], { cascade: true }))
  .pipe(sourcemaps.write('.'))
  .pipe(gulp.dest('app/css'))
  .pipe(browserSync.reload({stream: true}));
});

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