-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Compiler should warn on empty style block #1138
Comments
Maybe it should only warn when built in production? I know in development I'll leave empty blocks to fill in later, having a warning when running in development seems annoying. |
I agree w/ @PaulBGD I can't tell you how many times I leave empty CSS selectors on purpose as a reminder to come back—so this has the potential to become noise— —feature flag? —production only? —feature creep? |
Yeah, that makes sense actually. I'll often put selectors in just so I can tweak them in devtools. |
remove empty style blocks in prod mode
As of 1.54.2 empty selectors are removed in prod mode, but left alone in dev mode |
Small thing, but when tidying up components this would be helpful
REPL
The text was updated successfully, but these errors were encountered: