oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
74.25k stars 2.77k forks source link

Bun Bundler: Tailwind CSS #12878

Open itsezc opened 3 months ago

itsezc commented 3 months ago

What is the problem this feature would solve?

With Tailwind v4, Bun should be able to bundle and build TailwindCSS, similar to how Vite handles it

What is the feature you are proposing to solve the problem?

TailwindCSS build plugin (ideally built-in) to Bun

What alternatives have you considered?

No response

huseeiin commented 3 months ago

bun build is a low level bundler. its not intended to handle tasks like that.

codehz commented 3 months ago

I just created a npm package (https://www.npmjs.com/package/bun-tailwindcss , only for v4) for that, use macro to collect class (so we don't need to re-scan file...)

it looks ugly at initially, but I think this is more suitable for bun