Rails 6.1, webpacker 6, tailwindcss and HMR – save time. How to configure it

Recently I've spent almost 12hrs to "just make it work" after upgrading rails 6.0 and webpacker 4 to the latest libs (as in title). I wanted to use tailwindcss 2.x and have everything working nicely with webpacker (without sprocket), and have everything automatically reloaded after any changes. Ended as well with watching changes also on views files 😉

Here is my article: https://rafath.pl/freaking-rails-6-1-webpacker-6-tailwind-2-0-postcss-8-x-how-to-make-it-work/913

cheers 😉

1 thought on “Rails 6.1, webpacker 6, tailwindcss and HMR – save time. How to configure it”

  1. I couldn’t get it to work by following the article but the repo and the branch worked for me.

    Thanks for the effort!

    Reply

Leave a Comment