Answer the question
In order to leave comments, you need to log in
How to configure gulp-autoprefixer for Gulp?
Connected gulp-autoprefixer and wrote the following code
.nav {
background: linear-gradient(top, #0b2267, #07133c);
}
.nav {
background: -webkit-linear-gradient(top, #0b2267, #07133c);
background: linear-gradient(top, #0b2267, #07133c); }
Answer the question
In order to leave comments, you need to log in
autoprefixer focuses on this resource , according to which the fox for the last 20 versions does not need a vendor prefix for the gradient, but if you really want to, you can write something like:.pipe(prefix({ browsers: ['last 25 versions'] }))
here is my code
gulp.task('sass:watch', function() {
gulp.watch('./project/**/*.scss', ['sass']);
gulp.src('./project/**/*.scss')
.pipe(sass().on('error', sass.logError))
.pipe(autoprefixer({
browsers: ['last 4 versions']
}))
.pipe(gulp.dest('./project/css/'))
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question