I am using gulp with autoprefixer in my project and I need to use the background gradient as follows:
background: linear-gradient(#e98a00, #f5aa2f);
but conclusion:
background:-webkit-linear-gradient(#e98a00,#f5aa2f); background:linear-gradient(#e98a00,#f5aa2f);
What happened to me?
Part of Gulpfile.js
gulp.task('styles', function() { return gulp.src(['css/less/mainPage.less']) .pipe(plumber()) // .pipe(concat('base.scss')) .pipe(less()) .pipe(prefix([{ browsers: ['IE 8', 'IE 9', 'last 5 versions', 'Firefox 14', 'Opera 11.1'] }])) .pipe(minifyCSS({keepBreaks: true})) .pipe(gulp.dest('css')) .pipe(connect.reload()); });
Iam using gulp -autoprefixer
even if iam setting
browsers: ['Firefox 14']
conclusion:
background:-webkit-linear-gradient(#e98a00,#f5aa2f); background:linear-gradient(#e98a00,#f5aa2f);
source share