Skip to content
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

Add Build.CacheBusters config to make Tailwind 3 work #10974

Closed
bep opened this issue May 21, 2023 · 1 comment
Closed

Add Build.CacheBusters config to make Tailwind 3 work #10974

bep opened this issue May 21, 2023 · 1 comment
Assignees
Milestone

Comments

@bep
Copy link
Member

bep commented May 21, 2023

I have picked up the ball and tested what's needed to get Tailwind 3 up and running with Hugo Pipes, and I was pleasantly surprised that it was mostly working (if we look pasted the Tailwind JIT compiler).

The main missing issue is that we need to somehow trigger rebuilds of the CSS when the templates changes. This is unfortunate and we should try to find a more effective way to do it, but Tailwind 3 seems to be very fast -- and we can make this behaviour optional.

This proposal should also be generally useful to others, as it will make the current "cache busting" logic on CSS/JSS etc. changes more transparent and configurable.

I will fill in some more details as I test this out in a real project.

@bep bep added this to the v0.112.0 milestone May 21, 2023
@bep bep self-assigned this May 21, 2023
@bep bep changed the title Add Server.CacheBusters config to make Tailwind 3 work Add Build.CacheBusters config to make Tailwind 3 work May 22, 2023
bep added a commit to bep/hugo that referenced this issue May 22, 2023
bep added a commit to bep/hugo that referenced this issue May 22, 2023
bep added a commit to bep/hugo that referenced this issue May 22, 2023
@bep bep closed this as completed in 2c3d4df May 22, 2023
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant