-
Notifications
You must be signed in to change notification settings - Fork 189
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
minifier: remove duplicate selectors #240
Comments
Seems reasonable. When does this happen in real-world code though? |
I'm not quite sure if there might be such a code, my guess is that it might be a clerical error or generated by the preprocessor. |
I'd like to take a look at this one. |
I won't manage currently to work on this. Free to take! |
For anybody still looking for a solution here, I've managed to combine cssnano and postcss-lightningcss to achieve the desired result. Note that this will require postcss. |
I'd like to have a try |
https://parcel-css.vercel.app/#%7B%22minify%22%3Atrue%2C%22nesting%22%3Atrue%2C%22customMedia%22%3Atrue%2C%22cssModules%22%3Afalse%2C%22analyzeDependencies%22%3Afalse%2C%22targets%22%3A%7B%22chrome%22%3A6225920%7D%2C%22source%22%3A%22h1%2Ch2%2Ch3%2Ch1%2Ch3%7B%5Cn%20%20color%3Ablue%5Cn%7D%5Cn%5Cndiv.class%2Cdiv.class%2C.class%7B%5Cn%20%20color%3Ablue%5Cn%7D%22%2C%22unusedSymbols%22%3A%5B%5D%2C%22version%22%3A%22local%22%7D
The text was updated successfully, but these errors were encountered: