Skip to content

Commit 17fcf05

Browse files
committed
Migrate browsers option to .browserslistrc per recommendation
1 parent ed6b5af commit 17fcf05

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.browserslistrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
last 2 versions

gulpfile.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ gulp.task('build-style', () => (
6464
.pipe(sass({
6565
outputStyle: 'expanded',
6666
}).on('error', sass.logError))
67-
.pipe(autoprefixer({
68-
browsers: ['last 2 versions'],
69-
}))
67+
.pipe(autoprefixer())
7068
.pipe(gulp.dest('./lib'))
7169
.pipe(cleanCss())
7270
.pipe(gulp.dest('./.css-compare/scss'))
@@ -75,9 +73,7 @@ gulp.task('build-style', () => (
7573
gulp.task('build-style-less', () => (
7674
gulp.src('./src/less/**/*.less')
7775
.pipe(less())
78-
.pipe(autoprefixer({
79-
browsers: ['last 2 versions'],
80-
}))
76+
.pipe(autoprefixer())
8177
.pipe(cleanCss())
8278
.pipe(gulp.dest('./.css-compare/less'))
8379
));

0 commit comments

Comments
 (0)