Closed xdivby0 closed 3 years ago
Ah it could be, because it adds a :root
rule at the top of the file. I might just need to check for any imports and add the rule after those. Thanks for flagging this.
You are welcome, thank you for doing this project! If I can help or should retest with a different version, hit me up :)
Hi @xdivby0 I've just submitted a fix for this. It will now only append the :root
rule after @import
rules. This assumes all import rules are at the top of the file. You can try it out by installing the latest version. If you use postcss-import
it might also be a good idea to put this before flex-gap-polyfill
in your list of PostCSS plugins.
I have a css file that looks similar to this:
Adding the flex-gap-polyfill postcss plugin breaks this import. I am not 100% sure this root-rule prepending is causing this break but I think so. Am I missing anything?