Closed sbarfurth closed 2 years ago
I don't know if it's possible to do that reliably. We tried it in v2.5.2 but caused a lot of problems and had to be reverted. In vuetify 3 we've switched away from @import
internally and have a new way of loading variables that doesn't use prependData
at all.
Hm that's unfortunate. I guess I will need to try something without the cli-plugin or override styles instead of changing variables. Bummer.
I've reverted to using @import
now. I couldn't find a way to make it work even manually. I'm afraid I'll be missing out on all the nice quality of life improvements with the next version since Vue 3 really isn't on the table any time soon sadly. Thanks for the quick reply anyway.
The vue-cli-plugin-vuetify injects two import statements into the style loader at build time. One for the custom variables in certain folders and one for base vuetify settings and utilities. This is convenient, but sadly these statements are hard-coded in the helpers file.
As the statements are prepended to files they take away the ability to use
@use
in your own styles. This is because they effectively start with@import
and thus@use
is not longer usable.The solution seems to simply be using
@forward
over@import
or to make this configurable. Is there any workaround I can use? I would like to rid myself of import statements. Maybe there could be an option to disable injecting styles?