tailwindcss/nesting used with postcss-nesting breaks some postcss plugins
See original GitHub issueWhat version of Tailwind CSS are you using?
v3.0.17
What build tool (or framework if it abstracts the build tool) are you using?
vite@2.7.13
What version of Node.js are you using?
For example: v17.1.0
What operating system are you using?
MacOS
Describe your issue
tailwindcss/nesting
used with postcss-nesting
breaks some postcss plugins. In this example vite config cssHasPseudo
is not working. Also another plugin that is not working is postcss-mixins
import tailwindcss from 'tailwindcss'
import tailwindcssNesting from 'tailwindcss/nesting'
import autoprefixer from 'autoprefixer'
import postcssImport from 'postcss-import'
import postcssNesting from 'postcss-nesting'
import cssHasPseudo from 'css-has-pseudo'
import postcssCustomMedia from 'postcss-custom-media'
export default {
css: {
postcss: {
plugins: [postcssImport, tailwindcssNesting(postcssNesting), postcssCustomMedia, cssHasPseudo, tailwindcss, autoprefixer]
}
}
}
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Using with Preprocessors - Tailwind CSS
To add support for nested declarations, we recommend our bundled tailwindcss/nesting plugin, which is a PostCSS plugin that wraps postcss-nested or postcss- ...
Read more >TailwindCSS nesting not working with postCSS config
Nested @tailwind rules were detected, but are not supported. any idea how I can get the tailwind to work as expected with the...
Read more >postcss/postcss - Gitter
What is the minimum recommended NodeJS compatibility for PostCSS plugins? v12? ... tailwindcss/nesting(postcss-nesting) line in a way that that doesn't use ...
Read more >Writing Complex Classes Using @apply and Postcss-Nesting ...
Since TailwindCSS is a PostCSS plugin, we can use it with Sass, Less, Stylus or other preprocessors just like any other PostCSS plugin...
Read more >postcss-multiple-tailwind | The AI Search Engine You Control
postcss/postcss-nested. PostCSS plugin to unwrap nested rules like how Sass does it. ... How to use postcss RTL in nuxt 3 except of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just to follow up here — I tracked down the issue last week and we are working with PostCSS on a fix. Thanks!
Could you open this as a separate issue please?