Vuetify: 1.5.16
Vue: 2.6.10
Browsers: Chrome 75.0.3770.142
OS: Windows 10, Linux
Add any other source of CSS
Vuetify should add their CSS before other CSS or at least allow to define where the vuetify-loader places the components.
Vuetify places their auto-discovered components always last, making it impossible to naturally override CSS.
Not sure if I am able to reproduce this, becasue codesandbox always runs in dev mode.
The problem is that dev mode and prod are looking different.
https://codesandbox.io/s/codesandbox-nuxt-q2ogg
Related links:
https://stackoverflow.com/questions/56665934/nuxt-vuetify-how-to-control-the-order-in-which-css-files-are-loaded
https://stackoverflow.com/questions/43574567/order-of-imported-css-file-in-component-vuejs
We don't specify any order, it's dependant on the build configuration.
Related:
You need see the order of the imports , for example: I had problem with the footer , my imports was:
import Sidebar from '@/components/organisms/Sidebar.vue';
import Toolbar from '@/components/organisms/Toolbar.vue';
import Footer from '@/components/organisms/Footer.vue';
The styles of AppBard (extends of Sheet) replace the Footer , I solved:
import Sidebar from '@/components/organisms/Sidebar.vue';
import Footer from '@/components/organisms/Footer.vue';
import Toolbar from '@/components/organisms/Toolbar.vue';
This does not work, because the components identified by veautify-loader inject themselves after all other loaded CSS.
The example is broken, can you create a new example of the problem for help?
will do
Is there any solution for this?
In dev mode vuetify style is loaded last in head part.
And all component styles are loaded before that.
After a build css files has at first vuetify css and then my component styles.
How can I keep order or change that after build that vuetify styles will be last in css file ?
vue-cli-service build --target lib --name my-lib src/index.js
Vue cfg has extract: true
Most helpful comment
This does not work, because the components identified by veautify-loader inject themselves after all other loaded CSS.