I've built a small application using Vuetify, and I'm bundling it all into bundle.min.js
, including CSS. However, when importing the bundle into a index.html
-file, like so:
<script src=js/bundle.min.js></script>
I can see that some Vuetify styles are leaking into the application that's importing my bundle. After checking out the source CSS I realize that most CSS is scoped under either v-application
or other v-component
parents, but some of the CSS resets and other styles affecting for example html
and body
are leaking. An example of this would injecting my bundle into the stackoverflow front page - most text gets bigger and I can see why, for example the Top Questions title has an added styling rule:
html {
font-size: 16px;
overflow-x: hidden;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-tap-highlight-color: rgba(0,0,0,0);
}
I've been searching for a solution, and tried everything I've found, but there doesn't seem to be a straightforward solution to this. I realize why Vuetify is built this way, but is there ANY way at all to scope or disregard the CSS resets in Vuetify so that the clients using my bundle can decide what global resets they want themselves? There must surely be a use case for this functionality?