Skip to content

Instantly share code, notes, and snippets.

@pocketjoso
Created November 15, 2015 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pocketjoso/4b331888dfcfaa02db53 to your computer and use it in GitHub Desktop.
Save pocketjoso/4b331888dfcfaa02db53 to your computer and use it in GitHub Desktop.
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
Copy link
Author

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