A
A
Alexandra2020-09-04 14:41:37
JavaScript
Alexandra, 2020-09-04 14:41:37

Why did Gulp autoprefixer stop working?

Previously, everything worked, at some point it stopped setting prefixes, there are no errors in the console, everything compiles, but without prefixes, I don’t even know which way to look, tell me pliz, here is the task code:

module.exports = function () {
    $.gulp.task('sass', function () {
        return $.gulp.src('src/static/css/main.scss')
            .pipe($.gp.sourcemaps.init())
            .pipe($.gp.autoprefixer({
                browsers: ['last 10 versions']
            }))
            .on("error", $.gp.notify.onError({
                message: "Error: <%= error.message %>",
                title: "style"
            }))
            // .pipe($.gp.csso())
            .pipe($.gp.sass({ outputStyle: 'expanded' }))
            // .pipe($.gp.sourcemaps.write('./'))
            .pipe($.gulp.dest('build/css/'))

            // Минифицированная версия
            .pipe($.gp.sass({ outputStyle: 'compressed' }))
            .pipe($.gp.rename('main.min.css'))
            .pipe($.gp.sourcemaps.write('./'))
            .pipe($.gulp.dest('build/css/'))
            .on('end', $.bs.reload);
    });
}

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