gavinmcfarland / flex-gap-polyfill

A PostCSS plugin to emulate flex gap using margins
https://gavinmcfarland.github.io/flex-gap-polyfill/
Creative Commons Zero v1.0 Universal
147 stars 6 forks source link

Don't add `:root` selector to `*.module.scss` either #39

Closed nemoDreamer closed 3 years ago

nemoDreamer commented 3 years ago

Due to only checking for *.module.css extension, we get the following error when using SCSS Modules:

./components/Layout/Main.module.scss:1:1
Syntax error: Selector ":root" is not pure (pure selectors must contain at least one local class or id)

Code:

https://github.com/limitlessloop/flex-gap-polyfill/blob/8d3f3607dfedeefc37e76fc6053d03cb53b510e5/src/index.js#L150-L151

I've got a pull-request coming!