Aborting if there are duplicate styles #2

Melindrea opened this Issue Apr 16, 2013 · 2 comments


None yet
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"?


peterkeating commented Apr 16, 2013

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

@peterkeating peterkeating added a commit that referenced this issue Apr 16, 2013

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

peterkeating commented Apr 16, 2013

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