Shareable PostCSS config used by @wearerequired.
Install the package:
npm i -D postcss @wearerequired/postcss-config
To use this config, simply reference @wearerequired/postcss-config
in your PostCSS configuration.
For example, using postcss.config.js
:
module.exports = require( '@wearerequired/postcss-config' );
- postcss-import
Plugin to transform@import
rules by inlining content. - postcss-mixins
Plugin for mixins. - postcss-nested
Plugin to unwrap nested rules like how Sass does it. - postcss-preset-env
Convert modern CSS into something most browsers can understand, determining the polyfills based on targeted browsers. - postcss-sort-media-queries
Plugin to combine and sort CSS media queries with mobile first or desktop first methods. - cssnano
A modern, modular compression tool. Only used for production builds.