S
S
Sergey Gromov2016-07-13 09:47:17
css
Sergey Gromov, 2016-07-13 09:47:17

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.
b125a4784855489f8bfb46203caf5fc7.jpeg

//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 question

Ask a Question

731 491 924 answers to any question