Lesson 41 of 50 · css
PostCSS & Autoprefixer
Duration: 7 mins
PostCSS is a JavaScript ecosystem for transforming CSS.
- Autoprefixer adds missing vendor prefixes (
-webkit-,-moz-). - postcss-preset-env lets you use future CSS syntax now.
Example: postcss.config.js
module.exports = {
plugins: [
require('autoprefixer'),
require('postcss-preset-env')({ stage: 1 })
]
};