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

Empty at-rules are being compiled #11

Open
ianthedev opened this issue Apr 20, 2019 · 0 comments
Open

Empty at-rules are being compiled #11

ianthedev opened this issue Apr 20, 2019 · 0 comments

Comments

@ianthedev
Copy link

ianthedev commented Apr 20, 2019

The CSS parser ignores empty rules and doesn't compile them, and that's great, in my opinion.

However, empty at-rules are being compiled and aren't being ignored.

For example, the following CSS code:

@media (max-width: 1024px) {

}

is being unnecessarily compiled to: @media (max-width: 1024px){}


Besides, the following CSS code:

@media (max-width: 1024px) {
    div {
    }
}

is being unnecessarily compiled to: @media (max-width: 1024px){}, too.

ianthedev added a commit to ianthedev/pieces that referenced this issue Apr 23, 2019
Fix issues: NxtChg#7 NxtChg#8 NxtChg#10 NxtChg#11

Please let me know any improvements.
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