-
-
Notifications
You must be signed in to change notification settings - Fork 161
Make unknown styles silently be ignored #47
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
Comments
I disagree. It is useful to quickly discover when you have mistyped a class name, or accidentally put a global |
I agree. When I work, I will often save my html files without the class names first and then add them in later. With this plugin my server will break because of this and I have to restart it every time because its a babel error. This gets very annoying and slows down development a lot. |
@bjudson there could be an option for those who want a hard failure. Though id like to amend my request to just say add the class naked, no remapping. Then would be good if this plugin by default added normal AND the modularized version. |
closing as i see you can now reduce missing modules to warnings instead of hard failures. |
When a class name is missing, it would be better if it simply did not add a class to the class list instead of failing.
This makes it hard to dynamically generate class names when iterating an array to ALLOW for targeting IF needed.
But as it stands now, you would have to define every possible class in the array in the style sheet as it's a hard failure if it doesn't find it.
This doesn't fit with what people expect of CSS.
The text was updated successfully, but these errors were encountered: