-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with tailwind purge and postcss-nested #2152
Comments
Can you post a project that reproduces? My gut is to say you should make sure the nesting plugin runs before Tailwind which I bet fixes it. |
That worked, kinda. Might be worth updating the docs. [
require('postcss-import'),
require('postcss-nested'),
require('tailwindcss'),
require('autoprefixer'),
] However, now the What's the best practice here, not use nesting? Use |
Use the https://github.com/postcss/postcss-nested#bubble |
This isn't working with either Either media queries don't do I ended up not using mix.postCss('resources/css/app.css', 'public/assets/css', [
require('postcss-import'),
require('postcss-nested')({
bubble: ['screen'],
}),
require('tailwindcss'),
require('autoprefixer'),
]); |
Yeah there's another issue about this now too, bleh. Have to fix a bug in postcss-nested unfortunately. |
Here's the open issue that is the same underlying issue: |
Perfect. I'll follow that 👍🏻 |
For anyone here from Google, note that the Tailwind docs now recommend using
|
Prior to the Tailwind
purge
option this CSS worked and wasn't purged:Now I need to wrap all
&.classname
instart ignore
blocks.The JavaScript for that class like like:
This works by the way:
The text was updated successfully, but these errors were encountered: