Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Aborting if there are duplicate styles #2

Melindrea opened this Issue · 2 comments

2 participants


I think that's the first thing that's coming to my mind. I'd be wanting to use CSSCSS in automated testing, setting a threshold for what I'd find acceptable, and then have it abort if there are duplicate styles.

I can also, obviously, see why people might not want that, but what do you think about an option for "break on duplicate"?


Excellent suggestion :) Will have a play around with implementing this option.

@peterkeating peterkeating referenced this issue from a commit
@peterkeating added 'failWhenDuplicates' option that fails the grunt task when rule…
… sets with duplicate declarations are found by CSSCSS (#2).

Added featureWhenDuplicates option, which when set to true will fail the grunt task if CSSCSS reports any rules sets that contain duplicates. Have pushed this into version 0.3.0, which I have just published to NPM, so if you update the grunt-csscss package, you should be able to use that option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.