npx tailwindcss init -p
to create a TailwindCSS and a PostCSS config file.{
content: ['./layouts/**/*.html', './content/**/*.md']
}
hugo
or hugo server -D --watch
to see the resultRead the full article here: https://dev.to/jonas_duri/how-to-use-tailwindcss-30-without-external-npm-scripts-just-hugo-pipes-2lg9
This already includes the proposed changes from @nnooney: https://github.com/gohugoio/hugo/issues/8343#issuecomment-1013956389