-
-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
Currently Tailwind is hard-coded to an old version (3.something) when using the cli and executing htmgo template. It would be nice if it defaulted to the latest version and could be configured in htmgo.yml file.
Here is where it's currently set.
htmgo/cli/htmgo/tasks/css/css.go
Line 81 in 5d9c2f8
| url := fmt.Sprintf(`https://github.com/tailwindlabs/tailwindcss/releases/download/v3.4.16/%s`, fileName) |
I would be glad to create a pull request if you would like.
Basically I would just add TailwindVersion to the ProjectConfig struct and default it to "latest" and do the plumbing for getting the values from the config file, testing, etc.
Then if the config is latest I would set the URL to
fmt.Sprintf(`https://github.com/tailwindlabs/tailwindcss/releases/latest/download/%s`, fileName)otherwise...
fmt.Sprintf(`https://github.com/tailwindlabs/tailwindcss/releases/download/%s/%s`, version, fileName)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels