Currently utilizing create-react-app v2.
I've encountered an issue with a component that has multiple classnames: "x15 x14 login-form__field". Strangely, in the production build, the order of '.x14' and 'login-form__field' seems to be reversed compared to development. Any insights on why this might be happening? I am aware that webpack performs hoisting and post-processing tasks, but am unsure how it could lead to this discrepancy.
https://i.sstatic.net/USFrs.png
https://i.sstatic.net/wycod.pnghttps://i.sstatic.net/vCtmT.png
Cheers
-- Update --
Upon closer inspection, I have noticed that the custom class is being injected as an inline style, giving it higher priority. It appears that webpack may be responsible for this behavior. Is there a way to instruct webpack/CRA to inject stylesheets instead of inline styles? Otherwise, the styling may not accurately reflect what is seen in production.
-- Second Update --
In the case of create-react-app, 'styleLoader' is used for injecting inline-styles during development for hot reloading, while CSS files are generated only for production builds. This choice seems logical considering the nature of these two environments.