-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Make Hugo work with tailwindcss-jit #8343
Comments
Would be nice if this could be added sometime soon. I think the JIT really improves the PostCSS / Tailwind workflow and speeds it up quite significantly. |
Using @praveenjuge's workaround for now, but definitely stoked to see this come to Hugo. |
I am also using this workaround. Let's hope to see the integration in Hugo soon. |
Noting that Tailwind 3.0 alpha has landed and JIT mode has replaced the classic engine; given few breaking changes (other than this one) expect Tailwind 3 will hit release within a couple of months. FYI |
Now released: |
Hi @brycewray, I've followed your guide on your blog to get JIT working. I couldn't get my site to build after upgrading to v3. I've altered npm scripts to get local server with watch mode working but no luck on building for production yet. |
Probably not very Hugo way but I am using tailwindcss CLI which keeps me away from Node.js/npm. Even though it has more pieces to put together, seems a bit more straightforward. I have this simple bash script which runs hugo server and tailwindcss watcher together:
For production, hooking tailwindcli before hugo build command. |
@bep I think that this could now be closed, as it is implemented in 0.112.*? The documentation explicitly states that
https://gohugo.io/getting-started/configuration/#configure-cache-busters The reference implementation works like a charm: Or did I miss something that is still WIP? |
This issue should have been closed when Hugo 112 released. |
Closing, this is fixed (and actually works very well after a few tweaks). |
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. |
https://github.com/tailwindlabs/tailwindcss-jit
The text was updated successfully, but these errors were encountered: