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

Add tailwindcss nesting support #9529

Merged
merged 2 commits into from
Dec 27, 2023
Merged

Add tailwindcss nesting support #9529

merged 2 commits into from
Dec 27, 2023

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented Dec 27, 2023

Changes

close #9526

Add tailwindcss/nesting support via an option the user can enable. https://tailwindcss.com/docs/using-with-preprocessors#nesting

Testing

Added new tests

Docs

TBA in docs repo. And there's also the added jsdoc.

Copy link

changeset-bot bot commented Dec 27, 2023

🦋 Changeset detected

Latest commit: f5daa15

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added pkg: integration Related to any renderer integration (scope) pr: docs A PR that includes documentation for review labels Dec 27, 2023
@@ -23,15 +24,22 @@ async function getPostCssConfig(

async function getViteConfiguration(
tailwindConfigPath: string | undefined,
viteConfig: UserConfig
nesting: boolean,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're starting to have lots of options here, could it be better to have a single object instead?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just an internal function so not a big deal. Going to merge this in but feel free to refactor if you'd like!

@matthewp matthewp merged commit d252fc6 into main Dec 27, 2023
13 checks passed
@matthewp matthewp deleted the tailwind-nesting branch December 27, 2023 17:34
@astrobot-houston astrobot-houston mentioned this pull request Dec 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: integration Related to any renderer integration (scope) pr: docs A PR that includes documentation for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tailwind nesting does not work
3 participants