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

Support multiple CSS files #63

Closed
RodrigoTomeES opened this issue May 25, 2023 · 1 comment
Closed

Support multiple CSS files #63

RodrigoTomeES opened this issue May 25, 2023 · 1 comment

Comments

@RodrigoTomeES
Copy link

RodrigoTomeES commented May 25, 2023

Hi,

I am currently working on implementing an integration of this package for Astro. I have noticed that the plugin loses the context of the previous CSS Class Map. This issue arises when there are multiple CSS files, as it can lead to errors with duplicate keys for different classes when iterating through minified classes.

I wanted to inquire if there are any plans to modify this behavior. Currently, I have a version that supports only one CSS file, but I would like to make it compatible with multiple CSS files. This would involve ensuring that the context of the previous keys is maintained while iterating through the minified classes.

Thank you.

@nex3
Copy link
Collaborator

nex3 commented May 25, 2023

PostCSS's plugin API doesn't have any built-in support for tracking information across multiple files. I think the best solution here is probably for you as the plugin invoker to use its customization API to track that information in whatever way works best for you.

@nex3 nex3 closed this as not planned Won't fix, can't repro, duplicate, stale May 25, 2023
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

No branches or pull requests

2 participants