pieces icon indicating copy to clipboard operation
pieces copied to clipboard

Empty at-rules are being compiled

Open ianthedev opened this issue 5 years ago • 0 comments

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 avatar Apr 20 '19 12:04 ianthedev