-
Notifications
You must be signed in to change notification settings - Fork 367
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
tailwindcss v4 support #374
base: main
Are you sure you want to change the base?
Conversation
go-blueprint/cmd/program/program.go Lines 890 to 894 in 9e33987
I am worried about the |
@@ -891,25 +879,16 @@ func (p *Project) CreateViteReactProject(projectPath string) error { | |||
cmd := exec.Command("npm", "install", |
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.
I think installing @tailwindcss/vite
that has a dependency of needing tailwind v4 will make it force install v4+ so maybe we are good to go using --prefer-offline
For people who have new tailwind cli the install will fail as seen in the logs as
|
I fixed Tailwind to v3.4.10 because that was the issue when it is used with HTMX. I saw open issues in tailwind repo, and the simplest solution for now was just using the older version. On the React side, I added --prefer-offline because I experienced an issue with project generation - it took more than 10 minutes, so I introduced prefer-offline when there is a local cache. If this is not a good practice, we can remove the flag. |
I meant this to be the current behavior I have fixed it in the pr
and I was worried about the |
Thanks for the info, I will try to review and test the PR tomorrow. |
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.
Problem/Feature
Support for tailwindcss v4
Checklist