this sort of looks like you did not exclude the node_modules folder in the config? I don’t think jekyll should be looking in there. I kinda thought it was excluded by default though.
Indeed, you normally don’t want to process all files in node_modules.
But I guess part of how tailwind works is that is looks in node_modules to prepare JS for the output of the site. I don’t know a PostCss step is looking in a .js file though.
Can you check the syntax in your JSON configs? Like a webpack or package.json or something. Maybe the syntax there is the issue and not the SCSS file.
Also note you’re using Node 16.0.0 in that build, so maybe something unstable going on there.
You can also try a different project and see if the problem is specific to your project.
e.g. fork this template I found and deploy it to Netlify
And then, from a working state, gradually change the dependencies in package.json and Gemfile until they match yours, or something breaks and you know exactly what caused the break
Somewhere along the way trying to get this thing to purge unused styles I ended up adding in PurgeCSS – after messing around with your suggestions @MichaelCurrin I decided to just rip that out of the Gemfile and _config.yml and away it went with CSS purged and all.
For anybody else that stumbles across this issue, skip over PurgeCSS you don’t need it and remember to set your NODE_ENV to production in your netlify.toml file at the root level of your repo but remember that when you do, devDependencies will be ignored in your package.json file – change this to dependencies.
Hopefully this helps someone else that wants to use Tailwind, Jekyll and Netlify.