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 support for PostCSS Document nodes #7291

Merged
merged 2 commits into from Feb 25, 2022
Merged

Conversation

thecrypticace
Copy link
Contributor

This is very experimental fix but I think maybe in the right direction. It still needs a good bit of thought.

The short summary is that PostCSS now has an optional Document node that represents a file with multiple disjoint sections to be processed by PostCSS. Previously PostCSS only ever assumed a single root node as did Tailwind. Now, when presented with a document node, we'll run the entire Tailwind plugin over each root node contained in the document.

Fixes #7207

@thecrypticace thecrypticace force-pushed the fix/postcss-documents branch 2 times, most recently from 36a55d0 to afb4a9c Compare February 21, 2022 15:17
@thecrypticace thecrypticace marked this pull request as ready for review February 25, 2022 19:51
@thecrypticace thecrypticace changed the title WIP: PostCSS Document Support Add support for PostCSS Document nodes Feb 25, 2022
@thecrypticace thecrypticace merged commit 4fed060 into master Feb 25, 2022
@thecrypticace thecrypticace deleted the fix/postcss-documents branch February 25, 2022 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Variant nodes are appended to the document rather than a root
1 participant