Omg So Slow
Just a short rant, and incredulity. I must be doing something wrong, because why would anyone willingly put up with slow build times?
Let me back up a bit.
I was messing around with tailwindcss in a test jekyll project, and I was getting used to and liked saving the file and seeing the change instantly with livereload. It reminded me of doing rails dev, with livereload, getting in the zone.
This comes to a screeching halt if I add tailwindcss (and the associated plumbing such as postcss). According the server output, it takes 12 seconds to build and empty page using tailwindcss, if installed locally as recommended. WTH
I only wanted to play around with tailwind to see if I liked it better than Bootstrap or Zurb, but I can’t believe people would willing add a minimum of 10 seconds to their build times in dev mode. I perfectly fine with production builds taking longer.
So either I’ve done something wrong or people are being slowly boiled alive.
I’ve currently decided to work around it by just using the cdn version of tailwind, at least until I get my legs underneath me for this.
<link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">
Also lots of fun messing around with various versions of node and yarn on my linux install. Switched to nvm to see if that helps any. I mean, rvm rocks, so nvm should too?
Wish me luck.
Edit: 2021-10-20
It must be me or the specific setup in jekyll. Tailwindcss is perfectly fine and fast in a new rails 6 app with webpack(er). It did require some tweaking to get the Node 8 incompatibility out of the way. Kinda lame. But I don’t know the JS ecosystem that well, so maybe I’m being overly harsh. gem and bundler went through some immense growing pains early in their development. It’d be nice if people learned from other’s mistakes though.