I’m getting the following error:
Error: Error building site: POSTCSS: failed to transform “css/tailwind.css” (text/css): Error: ENOENT: no such file or directory, stat ‘/Users/erik/Downloads/sites/hugo/stdin’
I haven’t tested this (looks cool), but I’m guessing that the reason this does not work is that it doesn’t support stdin as input (it expects a file) – we could fix that on the Hugo side (by creating a temp file), but I suspect we need to look at some other aspects of this as well (I see some mention about file watching of templates).
Anyhow, could you create an issue on the Hugo GitHub issue tracker?
I had read that Tailwind JIT will be made available for Hugo in version v8.4**.
For now, as long as the Tailwind JIT compiler is not(not handy) yet available in Hugo, here is a quick and dirty example.
With this example, you can edit Hugo layouts with the livereload, tailwindcss jit compiler.
execute of template failed: template: partials/head.html:9:15: executing "partials/head.html" at <resources.PostCSS>: error calling PostCSS: type <nil> not supported in Resource transformations