CSS not loading when in build mode. (Working fine in Dev mode)
Unanswered
sudo posted this in #help-forum
sudoOP
Hello, have someone noticed that some CSS styles are being removed whenever we
Context: I applied a CSS rule to a <Paper /> MUI Element, and in Dev mode its
But once we move to build, the background color is plain white, as if it didn't apply the CSS.
This is one of the properties that got affected, other properties are( Animations on hover ...)
Has someone experience such a thing? any help is appreciated, thx
I'm on 14.0.2
npm run build then npm run start.Context: I applied a CSS rule to a <Paper /> MUI Element, and in Dev mode its
background-color is the one that i specified and working perfectly.But once we move to build, the background color is plain white, as if it didn't apply the CSS.
This is one of the properties that got affected, other properties are( Animations on hover ...)
Has someone experience such a thing? any help is appreciated, thx
I'm on 14.0.2
1 Reply
@sudo Hello, have someone noticed that some CSS styles are being removed whenever we `npm run build` then `npm run start`.
Context: I applied a CSS rule to a <Paper /> MUI Element, and in Dev mode its `background-color` is the one that i specified and working perfectly.
But once we move to build, the background color is plain white, as if it didn't apply the CSS.
This is one of the properties that got affected, other properties are( Animations on hover ...)
Has someone experience such a thing? any help is appreciated, thx
I'm on 14.0.2
White-winged Scoter
Not too much I can get from that, but if it's inline, maybe check your ESLint rules, they usually cause build issues if they aren't abided by.