Hi all,

I’ve been trying to get jekyll and tailwind set up correctly. I’ve been googling erros for a while, reading articles, stackoverflow, articles, youtube videos, etc and can’t figure it out. I’m somewhat familiar with jekyll and tailwind, but not with ruby or gemfiles or npm really.

I’ve been following this awesome and very brief “tutorial” on setting it up:

https://mdoliwa.com/2020/08/22/how-to-setup-jekyll-with-tailwind-css.html

I would include dozens of other links, but this is really the relevant one.

Before I was stuck on npx tailwindcss init and eventually figured out I needed to run npm install autoprefixer first (hopefully this helps someone who stumbles upon this looking for tailwind+jekyll help in the future).

I tried running jekyll serve and got this:

r/webdev - Need help setting up a Jekyll and Tailwind boilerplate

I’ve tried installing postcss and jekyll-postcss but can’t figure out how on their respective pages, or if it’s supposed to auto-install or what (npm confuses me)

I tried adding:

gem "jekyll-postcss", "~> 0.4.0"

to my gemfile in hopes maybe it was the version missing, but no luck.

I just ran:

gem install jekyll-postcss

and then served but now it just refuses to serve… also interestingly enough “gem install jekyll-postcss” gets ONE result on google…? It’s just been on this for minutes… I’ve tried killing it and trying again with no luck

r/webdev - Need help setting up a Jekyll and Tailwind boilerplate

Force killing with ctrl+C gets me a lot of output, ruby stuff, hope someone can make sense of it, google sure can’t:

r/webdev - Need help setting up a Jekyll and Tailwind boilerplate

Sorry for the long post, just figured more info the better. Thanks in advance to anyone who knows how to help : )

I should note that jekyll was serving just fine immediately before I added tailwind. I know I could just use the CDN but I want all the fancy stuff that postcss seems to have like sass (don’t understand it too well but want to learn).



Source link

Write A Comment