gruntjs / grunt-contrib-cssmin

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

Similar class entries are deleted #252

Closed cade-galt-1 closed 8 years ago

cade-galt-1 commented 8 years ago

I use the same class name .blue_but multiple times. I do this b.c. each one has a different browser extension and I at one point was parsing the file and targeting my CSS to different browsers.

To make my life easier I loaded them all in one file, after it was obvious that the browser knows to use the class with its extension.

Can you add an option to allow multiple classes with the same name. A few others have had a similar issues and requested the same. See below. Thanks.

http://stackoverflow.com/questions/34845819/grunt-contrib-css-is-breaking-my-css-b-c-it-removes-multiple-entries

alexVauch commented 8 years ago

Hi there. Maybe try to disable "advanced" option:

options: {
   advanced: false
}
sindresorhus commented 8 years ago

From the readme:

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