Guide on using TailwindCSS in Play Framework (without npm) #12835
hertg
started this conversation in
Show and tell
Replies: 1 comment
-
I had to write an sbt-postcss plugin for it 🤣 . Your way is much more lightweight. Thank you for sharing. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have just published a guide on how to use TailwindCSS in a Play Framework project, without relying on nodejs and npm.
Since TailwindCSS offers a standalone CLI, and thanks to the source file tasks of sbt-web, we can integrate the Tailwind compilation into the sbt build of Play.
The guide can be found here:
https://hertig.blog/posts/tailwindcss-in-play-framework-without-npm/
And an example project is publicly available here:
https://codeberg.org/hertg/play-tailwindcss
Maybe this will be useful for anyone who only dares to touch Javascript bundlers with a long stick... Because I haven't found a stick of sufficient length yet :)
Beta Was this translation helpful? Give feedback.
All reactions