3 ms·
Main reason to use PostCSS is not to replace preprocessor. Main revolution happens outside a syntax-sugar world right now. This is why main reason to use PostC
by iskin 10y ago
Main reason to use PostCSS is not to replace preprocessor. Main revolution happens outside a syntax-sugar world right now.
This is why main reason to use PostCSS is to have non-preprocessors tools:
1. Autoprefixer.
2. Stylelint. Like ESLint, but for CSS. It will automatically find a mistakes in your CSS.
3. postcss-inline-svg, changes a SVG color when you insert it with base64.
4. CSS Modules, automatically isolate your CSS components (like auto-BEM, but with better isolation).
5. postcss-cssnext, if you are fan of CSS Custom Properties and want to use them right now (for some simple cases, of course there is no dynamic Custom Properties).