7rulnik / postcss-flexibility

PostCSS plugin for Flexibility polyfill
MIT License
296 stars 14 forks source link

The ability to exclude blocks of code from being processed #29

Closed Designer023 closed 8 years ago

Designer023 commented 8 years ago

Hi,

I'm running into issues with the site i'm working with. Long story short, flexibility is awesome, but there is one block of selectors I'd like to exclude from being processed because they are that complicated the plugin can't handle it :) This is a long shot at a feature request.

e.g.

// #flexibility-stop
.block of selectors {... }
// #flexibility-start
7rulnik commented 8 years ago

Hi @Designer023

I agree that execlude selectors from processing really good idea, but not sure that comment block is best way to do it. I thought about display: flex no-process or something like this, but I don't really like it because it's not «real» css.

Designer023 commented 8 years ago

Hi! @7rulnik,

Yeah i'm not keen on adding comments either, but using non-real css seems worse. The way i was thinking is similar to what the scss-lint project does. It's not ideal, but it's the best I can come up with other than having a config file with a white / black list of selectors. Disabling it where needed inline seems to make more sense to me :)

7rulnik commented 8 years ago

@Designer023 I just release v1.1.0. Now you can exclude rules. For now you can exclude rule by adding comment. In next releases I will try to implement excluding for code blocks.

Designer023 commented 8 years ago

@7rulnik Thank you. You are amazing :)