-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Introduce bun ./index.html
#16993
Introduce bun ./index.html
#16993
Conversation
Updated 4:05 AM PT - Feb 3rd, 2025
❌ @Jarred-Sumner, your commit 0941c6b has 3 failures in
🧪 try this PR locally: bunx bun-pr 16993 |
@Jarred-Sumner why's it stripping out Here you can see the |
Looks like a bug. It’s expecting a |
Yeah, I never bother with |
btw this bug mentioned above is tracked in #16973 |
|
||
### Tailwind CSS | ||
|
||
To use TailwindCSS, add the plugin to your `bunfig.toml`: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to mention you need to install this package (as it was one a decent confusion with people thinking it was inbuilt)
Also why is there so much duplication between pages, are you merging fullstack.md
into this? Or at very least make some template so they are the same and can't as easily get so different
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
duplication in docs is generally fine IMO. People don't read every page.
Going to merge this, but @paperclover please take a look over it when you get a chance. |
What does this PR do?
This lets you start a frontend dev server by directly running
.html
files in Bun.For multi-page apps, you can pass multiple routes explicitly.
![image](https://private-user-images.githubusercontent.com/709451/408876135-d268b3b3-411b-4e04-aed8-7124d63a9222.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5Njc1NjQsIm5iZiI6MTczODk2NzI2NCwicGF0aCI6Ii83MDk0NTEvNDA4ODc2MTM1LWQyNjhiM2IzLTQxMWItNGUwNC1hZWQ4LTcxMjRkNjNhOTIyMi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyN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zdCJ9.p9fwNcLLCuVWNT-lmEvO3xP4Jh7reTNbYnfM2IQHiP0)
If you pass only one route, that route is matched as the fallback route so that you can use this with single-page apps that do client-side routing from a single shared entry point.
How did you verify your code works?
There are tests