Skip to content

Tailwind CSS styles aren't added in Bun.build if the output directory is two folders deep #19898

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pfgithub opened this issue May 25, 2025 · 0 comments
Labels
bug Something isn't working bundler Something to do with the bundler css CSS parser, bundler-related

Comments

@pfgithub
Copy link
Contributor

What version of Bun is running?

1.2.14+6a363a38d

What platform is your computer?

Microsoft Windows NT 10.0.19045.0 x64

What steps can reproduce the bug?

bun init --react=tailwind
bun run build --outdir=dist/two
bunx serve dist/two -n

What is the expected behavior?

Tailwind classes should be working the same way they do with --outdir=dist:

Image

What do you see instead?

Notice that the tailwind reset styles have applied, but no style classes are working

Image

Additional information

No response

@pfgithub pfgithub added bug Something isn't working needs triage labels May 25, 2025
@github-actions github-actions bot added bundler Something to do with the bundler css CSS parser, bundler-related and removed needs triage labels May 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working bundler Something to do with the bundler css CSS parser, bundler-related
Projects
None yet
Development

No branches or pull requests

1 participant