postcss / postcss-custom-properties

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

Suppress warnings 'Custom property ignored: not scoped to the top-level :root element' #117

Closed tsesaihung closed 6 years ago

tsesaihung commented 6 years ago

Are there any ways to use Angular Cli to suppress the warning of 'Custom property ignored: not scoped to the top-level :root element'?

This is the issue previously raised but no solutions were provided.

https://github.com/angular/angular-cli/issues/7991

jonathantneal commented 6 years ago

For now, the best way to do this is to use the warnings option.

https://github.com/postcss/postcss-custom-properties#warnings

failpunk commented 5 years ago

The warnings option has been removed. Now what?

jonathantneal commented 5 years ago

It no longer throws this warning.