You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current webpacker install, was problematic.
Main issue is that current release of webpacker uses Postcss7.
Tailwind 2 expects Postcss8, and that causes a lot of issues.
Tailwind team has published Tailwind 2 compatible Postcss7 [package](https://tailwindcss.com/docs/installation#post-css-7-compatibility-build)
So in order for the generator to work with Rails 6.1 defaults, this PR
deferes to use `tailwindcss@npm:@tailwindcss/postcss7-compat` package.
By, using this package users don't loose anything it is Tailwind 2.
--------------
There is a way to make it work without using the `Postcss7` package by
using latest `rails-webpacker` beta, but I think it is smarter for now
not to use beta releases.
When rails wepbacker publishes latest with `Postcss8` then we can change
the generator.
0 commit comments