PostCSS plugin to place rules directly at the root node.
The @at-root
causes one or more rules to be emitted at the root of the document, rather than being nested beneath their parent selectors:
}}
Which would produce:
It will play well with postcss @include
plugins.
foo.css:
@}
bar.css:
Will produce:
@
Usage
See PostCSS docs for examples for your environment.