#Running tailwind in watch mode alongside bun in watch mode

1 messages · Page 1 of 1 (latest)

tender herald
#

I have the following two scripts in the package.json which I would like to run together concurrently. How would I achieve that with Bun? In the past I would need to opt for an npm package to do this.

"dev": "bun run --hot --watch src/index.tsx",
"tailwind:dev": "bunx tailwindcss -i ./src/style.css -o ./public/style.css --watch"

Alternatively, how else would I have the tailwind output css file update when src files change?

granite portal
#

Couldn't you use concurrently to run both commands in parallel?

tender herald
#

I could, but I am hoping that Bun has something built-in to allow this. Seems like something it would have, to remove an unnecessary dev dependency (just like how it replaces some other common ones like dotenv).