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

css empty rule should be eliminate #850

Closed
susiwen8 opened this issue Feb 19, 2021 · 0 comments · Fixed by #851
Closed

css empty rule should be eliminate #850

susiwen8 opened this issue Feb 19, 2021 · 0 comments · Fixed by #851

Comments

@susiwen8
Copy link
Contributor

In css file there are some empty rulesets, esbuild fail to remove them in bundle and minify.

.a {
    
}
.b { color: red;}

@keyframes test {
    from {}
    to {
        color: red;
    }
}

it should be

/* in webpack */
.b{color:red}@keyframes test{to{color:red}}

but esbuild save them

/* in esbuild */
.a{}.b{color:red}@keyframes test{0%{}to{color:red}}
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

Successfully merging a pull request may close this issue.

1 participant