While developing a web app using Vue (3.1.3) and Vuetify (1.3.8), everything appeared to be working fine initially. However, when I proceeded with the production build, I noticed that Vue was somehow changing the order of CSS.
The issue specifically revolves around the classes .v-list__tile__content
and .align-end
.
In the vuetify.css file, these classes are located on lines 4844 and 7236 respectively. But after running npm run build
, in the dist/css/chunk-vendors.*.css
file, their positions are altered to 108929 and 100729. As a result, the sequence in which the styles are applied gets switched, consequently affecting this div:
<div class="v-list__tile__content align-end">...</div>
This leads to variations in appearance between the development server and the production environment.
On DEV: https://i.sstatic.net/90miD.png
On PROD: https://i.sstatic.net/k5NwI.png
The generated div is tied to this component:
<v-list-tile-content class="align-end">{{ dish.price }}</v-list-tile-content>
The root cause lies in the
align-items: flex-start/flex-end;
property.
Is there a systematic solution to address this quirk? While one workaround could involve overriding the style directly, it raises concerns about potential reoccurrences.