postcss / postcss-custom-properties

Use Custom Properties in CSS
https://postcss.github.io/postcss-custom-properties
MIT License
596 stars 77 forks source link

Add warning when a custom prop is used in another place that :root ? #13

Closed MoOx closed 10 years ago

MoOx commented 10 years ago

I'm guessing this make sense according to the limitation. This should create warning for all non root :root usage (in mq or in other selector)

kevinSuttle commented 8 years ago

Is there a way to silence these warnings at dev time? I have a situation where the warnings are present (only in the terminal, not in the browser console), but inaccurate (seemingly too early or too late), but the correct styles are applied. https://github.com/pascalduez/postcss-apply/issues/11#issuecomment-248404763

MoOx commented 8 years ago

Silence is not smart. The problem must be identified and fixed.

kevinSuttle commented 8 years ago

Screenshot when saving a CSS file:

screen shot 2016-09-20 at 4 31 00 pm

Screenshot when saving a JS file:

screen shot 2016-09-20 at 4 34 04 pm
kevinSuttle commented 8 years ago

@MoOx This is at least part of the problem for me: https://github.com/webpack/webpack/issues/215