DEV Community

Discussion on: Library based on Vuetify, how we use and tips to avoid performance issues

Collapse
 
mtermoul profile image
Mohamed Termoul

Great work. I am also trying to do something similar however I have two questions:

  1. How to you initialize Vuetify within your component library? I see that Vuetify was installed as dev dependency but I didn't see that it was initialized from your component library.

  2. Are you saying that creating the library with vue rollup can cause issues and that's why you switched to vue-cli? what kind of issues? I am also using vue rollup!

Collapse
 
rbastiansch profile image
Rafael Bastiansch

Nice questions mate.

  1. I will update it on this post soon, thanks. I don't initialized it inside my lib, I do it inside my project consuming my lib, on Nuxt(most of our projects) I include Vuetify module on nuxt.config like this vuetifyjs.com/en/getting-started/i..., and for a Vue-CLI project I imported Vuetify and add the commom Vue.use(Vuetify).

  2. I had issues to build my scss files, I remember I as trying to building it to separated files on dist folder and couldn't make it works, it was with some rollup plugin. If you could share your project or a sandbox of it with rollup, I would appreciate to see it.