Answer the question
In order to leave comments, you need to log in
Why does SourceMap crash?
SourceMap works every other time, at the most necessary moments, as always, you cannot rely on it .. here is the task where sourcemaps are collected.
//js
gulp.task('js', function() {
gulp.src('js/*.js')
.pipe(sourcemaps.init())
.pipe(concat('script.js'))
.pipe(sourcemaps.write('map'))
.pipe(gulp.dest('../js'))
});
//sass
gulp.task('sass', function() {
gulp.src('sass/style.scss')
.pipe(sassGlob())
.pipe(sourcemaps.init())
.pipe(sass({ outputStyle: 'expanded' }).on('error', sass.logError))
.pipe(autoprefixer({ browsers: ['last 4 versions'], cascade: false }))
.pipe(sourcemaps.write('map'))
// .pipe(csso())
.pipe(gulp.dest('../css'))
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question