Vuetify options not taken into account in vue-cli library build

Hi guys, first post here ! Thanks in advance for all your future help :wink:

I’m encountering an issue with Vuetify options when building my app as a library.

My app is correctly wrapped with <v-app> and my vuetify options work fine in development mode or if I build normally using vue-cli-service build for example.

However, if I build in library mode (ex: vue-cli-service build --target lib --name xxx ), the below options are NOT taken into account. I’m forced to modify vuetify/dist/vuetify.js for lack of a better solution…

Vue.use(Vuetify, {
  iconfont: 'fa',
  theme: {
    primary: '#213e79',
    secondary: '#c0d8ed', 
    accent: '#4ea3ed',
    error: '#b71c1c',
    info: '#2196f3',
    success: '#66bb6a', 
    warning: '#f57f17'

Any idea what could be causing this issue ?

Can anybody take a look at this ? :slight_smile:

Maybe the pro’s are out for holidays but I believe this issue needs a proper fix.

1 Like

Any pro back from holidays by any chance ?

I asked the same question on Stack Overflow and it was answered here for anyone who encounters the same issue :slight_smile:.

I had to use the beforeCreate hook since I’m currently using the 1.5x version of Vuetify.