What is Post-CSS
- PostCSS is a tool for transforming CSS with JavaScript plugins. It allows developers to utilize JavaScript plugins to manipulate CSS styles.
- PostCSS parses CSS into an abstract syntax tree (AST), which can then be transformed by plugins. These plugins can perform various tasks such as autoprefixing, minification, linting, polyfilling, and more.
- One of the most popular use cases for PostCSS is autoprefixing, which automatically adds vendor prefixes to CSS rules to ensure cross-browser compatibility.
Installation
npm install postcss - install post css
npm install postcss-cli - install post css-cli