Skip to content

[Feature]: @tailwindcss/webpack support #7660

@weihongyu12

Description

@weihongyu12

What problem does this feature solve?

I have seen that @tailwindcss/webpack has been released, boasting 2.17x faster performance compared to @tailwindcss/postcss.

Currently, in RSBuild, I am using it like this:

export default defineConfig({
    // ...
    bundlerChain: (chain, { CHAIN_ID }) => {
      chain.module
        .rule(CHAIN_ID.RULE.CSS)
        .oneOf(CHAIN_ID.ONE_OF.CSS_MAIN)
        .use('@tailwindcss/webpack')
        .loader('@tailwindcss/webpack');
    },
  },
});

I am wondering if there is a more elegant way to support it.

What does the proposed API look like?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions