postcss-wrap
postcss-wrap copied to clipboard
Wrapped body and html selectors
Hi,
I was very happy to find your plugin—it's great. One blocker for me is that I'm importing / using library stylesheets that assume they can apply rules to html
and body
selectors, which in my environment (that needs to be nested in a selector) would produce something like
#my-app body { ... }
#my-app html { ... }
#my-app .some-selector { ... }
How would you feel about replacing body and html selectors with the prefix wrap selector?
The output would then look like this:
#my-app { ... }
#my-app { ... }
#my-app .some-selector { ... }
The latter works wonderfully in my project, the former does not. This is implemented in a similar plugin here