You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Converting an existing project to mui, with a webpack build. Mui brings jss styles, which are injected into the page dynamically. Other features on the page use static style sheets. In a production build, webpack isn't aware of the dynamic style tags from jss, which means it can't maintain the style sheet order when building the combined css assets. This breaks the css in production. How do you maintain css order when the build can't see the css?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Converting an existing project to mui, with a webpack build. Mui brings jss styles, which are injected into the page dynamically. Other features on the page use static style sheets. In a production build, webpack isn't aware of the dynamic style tags from jss, which means it can't maintain the style sheet order when building the combined css assets. This breaks the css in production. How do you maintain css order when the build can't see the css?
Beta Was this translation helpful? Give feedback.
All reactions