Closed andrespch closed 2 years ago
I'm not completely knowledgable, but if it's of any help, I think I'd definitely recommend cssbundling-ralis
— tailwindcss-rails
doesn't really provide any options for configuration and instead relies on the standalone precompiled version of Tailwind (which means no nevermind… see edit). The latter is simpler, but the former is much more flexible, and ended up being the right choice for me after trying tailwind.config.js
filetailwindcss-rails
. Hopefully this is a little helpful!
Edit: it seems that I'm either misremembering or that tailwindcss-rails
has progressed since October — its README mentions that you can configure it with tailwind.config.js
. So maybe I'm wrong on that front. I'm not sure how third-party plugins work with it, though.
@andrespch If you don't have any other reason to include node in your application, I would definitely suggest just using tailwindcss-rails, since there's no node dependency. If you need node for other JavaScript setups or otherwise, stick with cssbundling.
Sorry if this is not the right channel for questions.
I'm trying to integrate tailwind css into my rails app (6.1.4). I'm confuse about what's the best way to go taking into account that I'd like to upgrade to 7 as soon as possible. Do I need to move to
css-bundling
or istailwindcss-rails
preferable?thanks in advance!