Anidetrix / rollup-plugin-styles

🎨 Universal Rollup plugin for styles: PostCSS, Sass, Less, Stylus and more.
https://anidetrix.github.io/rollup-plugin-styles
MIT License
243 stars 43 forks source link

Css modules styles order is not consistent #134

Closed vladshcherbin closed 4 years ago

vladshcherbin commented 4 years ago

Same as https://github.com/egoist/rollup-plugin-postcss/issues/96

When using css modules and compiling to a single css file, the order of compiled styles doesn't stay the same. This breaks flow when you have reset.css styles and some deep component styles are placed before it.

Anidetrix commented 4 years ago

Hello @vladshcherbin,

Hmm, I though this should not be the case, since this plugin has a custom order builder. Can you confirm the order is wrong? If you can, please make a minimal reproduction repo using rollup's REPL, REPL.it, or just GitHub.

vladshcherbin commented 4 years ago

I believe I can't, created a repo and can't reproduce it. Probably messed somewhere locally while testing lots of plugins. I'll reopen if will see again, sorry.