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
I get this warning from webpacker server in Rails environment
"You are using @apply rule and custom property sets. This feature won't be included in next the major release of postcss-next. This most likely won't get any more support from browser vendors as the spec is yet considered deprecated and alternative solutions are being discussed. "
Is there any other alternative to export classes in case @apply gets deprecated?
It sounds like you are running postcss-nextbefore Tailwind; can you share your .postcssrc file or wherever it is that you setup your PostCSS plugins with Rails? Try moving postcss-next after Tailwind, I bet that will clear this warning.
postcss-next has its own version of @apply (which Tailwind is compatible with) and that version is eventually being removed from postcss-next. That won't affect @apply in Tailwind at all though; that will continue to work forever.
Activity
adamwathan commentedon Feb 11, 2018
It sounds like you are running
postcss-nextbefore Tailwind; can you share your .postcssrc file or wherever it is that you setup your PostCSS plugins with Rails? Try movingpostcss-nextafter Tailwind, I bet that will clear this warning.postcss-nexthas its own version of@apply(which Tailwind is compatible with) and that version is eventually being removed frompostcss-next. That won't affect@applyin Tailwind at all though; that will continue to work forever.uurcank commentedon Feb 11, 2018
thanks so much, good to know
here is my .postcssrc file
plugins: postcss-import: {} postcss-cssnext: {} tailwindcss: 'app/javascript/css/tailwind.js'adamwathan commentedon Feb 11, 2018
Got it! Yeah so change it to this:
...and I bet that error will disappear unless you are using the
postcss-nextform of@applyin addition to how Tailwind uses it, ie:uurcank commentedon Feb 11, 2018
yeap, that solves it, the error disappeared! thanks so much @adamwathan
Update @tailwindcss/typography 0.5.16 → 0.5.19 (minor) (#19014)