Created
November 15, 2015 12:13
-
-
Save pocketjoso/4b331888dfcfaa02db53 to your computer and use it in GitHub Desktop.
clean-css 3.4.3 merging bug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No longer an issue in
3.4.8
.