gruntjs / grunt-contrib-cssmin

Compress CSS files.
http://gruntjs.com/
MIT License
793 stars 147 forks source link

bad css if declaring classes with word "null" #287

Closed nicolaelitvac closed 7 years ago

nicolaelitvac commented 7 years ago

This css : .page__section--padding-null { padding: 0; } .page__section--padding-top-null { padding-top: 0; } .page__section--padding-bottom-null { padding-bottom: 0; }

Is transformed into : .page__section--padding-$1 $2]{padding:0}.page__section--padding-top-$1 $2]{padding-top:0}.page__section--padding-bottom-$1 $2]{padding-bottom:0}

Word "null" appears as "$1 $2]".

mqliao commented 7 years ago

+1, Please fix this issue input: .record-null{color:#aaa;} output: .record-$1 $2]{color:#aaa}

XhmikosR commented 7 years ago

Issues with the output should be reported on the clean-css issue tracker.