Skip to content
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

Ensure nesting plugins can receive options #7016

merged 2 commits into from Jan 14, 2022


Copy link

PostCSS nesting added some options that can be configured eg.

Current implementation of Tailwind Nesting doesn't pass the options, becuase the typeof of the plugin is object with options, not function. This fixes it.

Example PostCSS Vite configuration

import postcssImport from 'postcss-import';
import postcssNesting from 'postcss-nesting';
import tailwindcss from 'tailwindcss'
import tailwindcssNesting from 'tailwindcss/nesting'
import autoprefixer from 'autoprefixer'

export default {
  css: {
    postcss: {
      plugins: [postcssImport, tailwindcssNesting(postcssNesting({
        noIsPseudoSelector: true
      })), tailwindcss, autoprefixer]

@lubomirblazekcz lubomirblazekcz changed the title fix: options for nesting / nested plugins Fix options for nesting / nested plugins Jan 11, 2022
@RobinMalfait RobinMalfait self-assigned this Jan 14, 2022
Copy link

Hey! Thank you for your PR!
Much appreciated! 🙏

@RobinMalfait RobinMalfait changed the title Fix options for nesting / nested plugins Ensure nesting plugins can receive options Jan 14, 2022
@RobinMalfait RobinMalfait merged commit 8293c2d into tailwindlabs:master Jan 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants