Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
clean-css 3.4.3 merging bug
import CleanCSS from 'clean-css'
const before = `
.hidden,
.visible-xs {
display: none!important;
}
@media (max-width:767px) {
.visible-xs {
display: block!important;
}
.hidden-xs {
display: none!important;
}
}
.hidden {
display: none !important;
}
.visible-xs {
display: none !important;
}
`
const after = new CleanCSS().minify(before).styles
console.log(after)
@pocketjoso

This comment has been minimized.

Copy link
Owner Author

commented Nov 15, 2015

No longer an issue in 3.4.8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.