S
S
Stepan Kormilin2015-09-24 20:31:33
Building projects
Stepan Kormilin, 2015-09-24 20:31:33

Why is gulp-autoprefixer not working?

Good afternoon!
Why might gulp-autoprefixer not work?
var autoprefixer = require('gulp-autoprefixer');
gulp.task('default', function () {
gulp.src('css/*.css')
.pipe(gulp.dest('app/css'))
.pipe(autoprefixer({
browsers: ['last 3 versions']
}));
});
All other components work fine!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Chashchinov, 2015-09-24
@Stepan13

The autoprefixer works after saving the files to the app/css folder
here is an example of a correct task

gulp.task('default', function () {
    return gulp.src('css/*.css')
        .pipe(autoprefixer({
            browsers: ['last 3 versions'],
            cascade: false
        }))
        .pipe(gulp.dest('app/css'));
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question