Skip to content

The Tailwind version is outdated when running htmgo template #101

@bdtomlin

Description

@bdtomlin

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.

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions