postcss.config.js
36 files
Configures PostCSS plugins for CSS processing in the Next.js application.
PostCSS is a tool for transforming CSS with JavaScript plugins.
Think of it like Babel for CSS:
| Feature | PostCSS | Sass/Less |
|---|---|---|
| Approach | Plugin-based transformation | Full preprocessor language |
| Flexibility | Use only what you need | All-or-nothing |
| Performance | Fast, minimal overhead | Slower compilation |
| Modern CSS | Uses actual CSS syntax | Custom syntax |
| Ecosystem | Huge plugin library | Built-in features only |
This project uses two essential PostCSS plugins:
Your CSS → PostCSS → Tailwind Plugin → Autoprefixer → Output CSSExports the plugins that PostCSS will use to transform CSS.
PostCSS uses a simple object where:
{} for defaults)module.exports = {
plugins: {
'plugin-name': { option: value },
'another-plugin': {},
},
}