Post-Processing CSS
This project setup minifies your CSS and adds vendor prefixes to it automatically through Autoprefixer so you don’t need to worry about it.
Support for new CSS features like the all
property, break
properties, custom properties, and media query ranges are automatically polyfilled to add support for older browsers.
You can customize your target support browsers by adjusting the browserslist
key in package.json
according to the Browserslist specification.
For example, this:
.App {
display: flex;
flex-direction: row;
align-items: center;
}
becomes this:
.App {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
If you need to disable autoprefixing for some reason, follow this section.
CSS Grid Layout prefixing is disabled by default, but it will not strip manual prefixing.If you'd like to opt-in to CSS Grid prefixing, first familiarize yourself about its limitations.To enable CSS Grid prefixing, add / autoprefixer grid: autoplace /
to the top of your CSS file.