Can we set ignor order in [mini-css-extract-plugin] to prevent from conflicting order warnings? #30083
-
Gatsy 2.32.3 After reordering import statements, I got this kind of warnings:
Searching for offending orders I stripped the component down to this code:
Both components import their SCSS module.
I cleared the SCSS modules. So they are empty. If I change import order, the warnings disappear
I found a workaround, which works fine
Is this a valid workaround or do I buy other issues? Is there a better way to resolve this issue? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
What version of gatsby are you using? I was using the exact same workaround in v2, but started receiving warnings again in 3.0.2. |
Beta Was this translation helpful? Give feedback.
-
Sorry, missed that information. I'm using Gatsby version: 2.32.3 |
Beta Was this translation helpful? Give feedback.
-
Found this pugin. gatsby-plugin-silence-css-order-warning. Did not test it yet. Perhaps it helps with Gatsby version: 3.0.2 |
Beta Was this translation helpful? Give feedback.
-
Yeah, it's an okay solution to this. It won't break anything else. |
Beta Was this translation helpful? Give feedback.
Yeah, it's an okay solution to this. It won't break anything else.