iamstarkov / jss-increase-specificity

Increases specificity of selectors. Port of postcss-increase-specificity
11 stars 1 forks source link

add increaseSpecificity sheet option #9

Closed kof closed 7 years ago

iamstarkov commented 7 years ago

Why?

kof commented 7 years ago

To be able to disable increased specificity for some local style sheet. Some things don't need it. For e.g. reset-jss and normalize-jss.

kof commented 7 years ago

I think actually plugins should be disablable on a sheet level in general, maybe this is something we need to consider in the jss core.

kof commented 7 years ago

I found only a few cases so far where plugin needs to be disabled per sheet, which is jss-isolate. I guess it is rarely the case, so it might be ok if plugin itself implements this option handling as I did in this pr.

iamstarkov commented 7 years ago

+ jss-increase-specificity@0.3.0