Skip to content

Commit

Permalink
fix(ie11): add ie11 to autoprefixer, add grid: autoplace (#8215)
Browse files Browse the repository at this point in the history
Co-authored-by: Taylor Jones <tay1orjones@users.noreply.github.com>
  • Loading branch information
tw15egan and tay1orjones committed Mar 31, 2021
1 parent c109532 commit 90714ba
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions packages/components/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,8 @@ const buildStyles = (prod) => {
.pipe(
postcss([
autoprefixer({
browsers: ['> 1%', 'last 2 versions'],
browsers: ['> 1%', 'last 2 versions', 'ie >= 11'],
grid: 'autoplace',
}),
])
)
Expand Down Expand Up @@ -417,7 +418,15 @@ gulp.task('sass:dev', () => {
})
).on('error', sass.logError)
)
.pipe(postcss([customProperties(), autoprefixer()]))
.pipe(
postcss([
customProperties(),
autoprefixer({
browsers: ['> 1%', 'last 2 versions', 'ie >= 11'],
grid: 'autoplace',
}),
])
)
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest('demo'))
.pipe(browserSync.stream({ match: '**/*.css' }));
Expand Down

0 comments on commit 90714ba

Please sign in to comment.