Use PrimeFlex as a PostCSS plugin
masterPrimeFlex is a PostCSS plugin that allows you to use @primeflex at-rules in your CSS to generate utility classes. You can initialize the plugin by calling the exported function with an optional configuration object.
When the plugin encounters an @primeflex at-rule, it processes various CSS utility categories (such as align, flex, grid, margin, padding, etc.) and applies them to the rule based on the provided options. It also supports custom plugins via the plugins option.
const primeflex = require('primeflex');
module.exports = {
plugins: [
primeflex({
// your custom options here
})
]
};