Skip to content

Commit 90714ba

Browse files
fix(ie11): add ie11 to autoprefixer, add grid: autoplace (#8215)
Co-authored-by: Taylor Jones <tay1orjones@users.noreply.github.com>
1 parent c109532 commit 90714ba

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

packages/components/gulpfile.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,8 @@ const buildStyles = (prod) => {
360360
.pipe(
361361
postcss([
362362
autoprefixer({
363-
browsers: ['> 1%', 'last 2 versions'],
363+
browsers: ['> 1%', 'last 2 versions', 'ie >= 11'],
364+
grid: 'autoplace',
364365
}),
365366
])
366367
)
@@ -417,7 +418,15 @@ gulp.task('sass:dev', () => {
417418
})
418419
).on('error', sass.logError)
419420
)
420-
.pipe(postcss([customProperties(), autoprefixer()]))
421+
.pipe(
422+
postcss([
423+
customProperties(),
424+
autoprefixer({
425+
browsers: ['> 1%', 'last 2 versions', 'ie >= 11'],
426+
grid: 'autoplace',
427+
}),
428+
])
429+
)
421430
.pipe(sourcemaps.write('.'))
422431
.pipe(gulp.dest('demo'))
423432
.pipe(browserSync.stream({ match: '**/*.css' }));

0 commit comments

Comments
 (0)