postcss-modules icon indicating copy to clipboard operation
postcss-modules copied to clipboard

What determines the order CSS modules are loaded in?

Open silkfire opened this issue 6 years ago • 0 comments

I'm having an issue with that the order the CSS modules are loaded isn't consistent; it is slightly different on every build. This affects the resulting hash of the generated files as I'm using a custom generateScopedName function. This is important as the order of which they arrive to the function determines the output class name.

Is there a way to control the loading order used by the loader?

silkfire avatar Jan 04 '20 01:01 silkfire