rspack-contrib / rsbuild-plugin-tailwindcss

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

feat: support custom postcss options #9

Closed colinaaa closed 2 weeks ago

colinaaa commented 2 weeks ago

For Rspack plugin:

We add a new option postcssOptions which will be passed to postcss() and postcss().process(). .

For Rsbuild plugin:

We automatically read postcss options from Rsbuild config. It will be auto-loaded and merged from postcss.config.js and tools.postcss.

We also removes tailwindcss from postcssOptions.plugins to avoid @tailwind being transformed by postcss-loader.

close: #8