usePostCssConfig

The usePostCssConfig helper function will be used together with the useTailwindConfig function.

Usage

The config PostCSS correctly you can use the usePostCssConfig helper which provides a basic Post CSS config by the Codey team.

For this you will have to install the @xerius/codey-style package. Then navigate to the postcss.config.js file to configure Tailwind. Import the usePostCssConfig helper function.

// postcss.config.js
const { usePostCssConfig } = require("@xerius/codey-style");

module.exports = usePostCssConfig();

Options

The usePostCssConfig helper function accepts a param, which are options to extend the basic PostCSS config provided by the Codey team. This can be used in certain cases, when there is a need to add or override a config value.

// postcss.config.js
const { usePostCssConfig } = require("@xerius/codey-style");

module.exports = usePostCssConfig({
  {
    // your extended Post CSS options
  }
});
Contributors: Sybren Willemot