Skip to content

9.7 “Ad Victoriam”

Compare
Choose a tag to compare
@ai ai released this 24 Oct 13:19
9.7.0

Brotherhood of Steel coat of arms

Autoprefixer 9.7 brings AUTOPREFIXER_GRID environment variable and huge performance improvments.

Grid Environment Variable

Autoprefixer can add CSS Grid polyfills for IE. You need to manually enable it to prove that you understand the limits of polyfill.

In previous versions you can enable Grid polyfill by grid: 'autoplace' option or by /* autoprefixer grid: autoplace */ control comment. But in some cases, developers were not able to use both methods. For instance, during work with Material UI’ CSS-in-JS in Create React App.

Now Autoprefixer supports environment variable to enable CSS Grid polyfill:

AUTOPREFIXER_GRID=autoplace npm build

Performance Improvements

@Knagis found that Browserslist takes 70% of the Autoprefixer time.

Autoprefixer 9.6.5 profiling

We did a lot of improvements in Browserslist and now Autoprefixer should work much faster.

67417985-a283e180-f5d2-11e9-879a-e364c9acccf1

Other