Reputation: 33
webpack - v4+
material ui - v4.9.6
react - v16.12.0
In a normal way all classes should be as the last one from the first example. In some reason on production mode, many of the classes do not change. Any idea?
Example 1:
<div class="MuiDrawer-root MuiDrawer-docked jss408"></div>
Example 2:
<div class="MuiPaper-root jss469 MuiPaper-elevation1 MuiPaper-rounded"></div>
Upvotes: 3
Views: 1424
Reputation: 15146
styles className
is not designed as deterministic in prod mode.
But the generated class names of the @material-ui/core
components behave differently. When the following conditions are met, the class names are deterministic:
Refer:
Upvotes: 3