rspack-contrib / rsbuild-plugin-tailwindcss

An Rsbuild plugin to integrate with Tailwind CSS
MIT License
12 stars 1 forks source link

[Feature] Custom PostCSS options #8

Closed colinaaa closed 1 week ago

colinaaa commented 1 week ago

Integrate with PostCSS and Rsbuild.

  1. With postcss.config.js:
export default {
  plugins: {
    cssnano: {},
  },
}
  1. With tools.postcss:
export default {
  tools: {
    postcss: {
      postcssOptions: {
        plugins: { cssnano: {} },
      },
    },
  },
}

Note that we should remove the tailwindcss from the plugins of PostCSS.