I have created a Vue application using vue cli 3
and incorporated Vuetify.
To optimize the size of my bundle, I decided to modify the way Vuetify is imported:
The versions I am working with are vuetify 1.5.5
and vue 3.7.0
import Vue from 'vue';
import Vuetify, { VLayout, VBtn, VApp } from 'vuetify/lib';
import 'vuetify/src/stylus/app.styl';
Vue.use(Vuetify, {
components: {
VApp,
VLayout,
VBtn,
},
theme: {
primary: '#ee44aa',
secondary: '#424242',
accent: '#82B1FF',
error: '#FF5252',
info: '#2196F3',
success: '#4CAF50',
warning: '#FFC107',
},
options: {
customProperties: true,
},
iconfont: 'md',
});
export default Vuetify;
However, upon making this change, I encountered the following error in the console: https://i.sstatic.net/dSXrF.png