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

Parse include/exclude markers with @preserve or /*! hints #134

Open
xumepadismal opened this issue Aug 4, 2023 · 0 comments
Open

Parse include/exclude markers with @preserve or /*! hints #134

xumepadismal opened this issue Aug 4, 2023 · 0 comments

Comments

@xumepadismal
Copy link

Some bundlers (in my case it's Angular CLI) minifies CSS before running critters. Therefore, any /* critters:exclude */ comments got stripped.

However, it's possible to preserve them using /*! critters:exclude */ or /* critters:exclude @preserve */ hints but in this case these markers are ignored by critters.

Would it be possible to implement a bit smarter parse logic to support these cases?

Thanks

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

1 participant