Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question