A dead simple way to run Tailwind CSS standalone CLI using go tool released with Go 1.2.4.
No more Node.JS. No more manual downloads.
-
Install it:
go get -tool github.com/scriptogre/tailwindcss-go-tool@latest
-
Create
input.cssin your project:@import 'tailwindcss';
-
Run it:
go tool tailwindcss -i input.css -o output.css --watch
That's it!
Note: Downloaded TailwindCSS binary is cached in ~/.cache/tailwindcss-go-tool/