Multiple CSS files using TailwindCSS gem
https://github.com/loqimean/tailwindcss_merger
Hi everybody, I think everybody who works with a tailwindcss-rails gem had a problem with just one file, so I have a solution for this, just add my gem to your project, create a folder “app/assets/tailwindcss_stylesheets” with your .css files inside and just start a server using ‘bin/dev’ or ‘rake tailwindcss:watch’ no more, it’s a simple solution.
Comments
Is there any upside to using your gem instead of using postcss?
yep, I think yes, because using this gem does not need to have +100500 dependencies from node_modules, ‘cause if you need only a few plugins of tailwindcss, which you can install only using gem tailwindcss-rails, so, you can choose: tailwindcss + tailwindcss-merge or cssbundling-rails + 100500 of node_modules. In my opinion, it’s a simples way)
Post a comment