@hashicorp/platform-postcss-config
This package provides a shared PostCSS configuration that can be used in HashiCorp Next.js sites.
Usage
Install the config package as a dev dependency:
npm install --save-dev @hashicorp/platform-postcss-config
Create a postcss.config.js
file if it doesn't exist, and import the package.
module.exports = {
...require('@hashicorp/platform-postcss-config'),
}
CSS Processing
This package configures a standard stack of PostCSS plugins, listed below:
- postcss-flexbugs-fixes
- postcss-normalize
-
postcss-preset-env
-
stage
is set to3
-
nesting-rules
is set totrue
-
custom-media-queries
loads in some of our defaults out of the box -
custom-properties
is set to false - we polyfill these for ie11 and do not compile them
-