[Vuejs]-Vuetify : how to import only needed components in vuetify when using laravel + vite + inertiajs + vue?

1👍

Automatic treeshaking with Vuetify can be accomplished by adding vite-plugin-vuetify to vite.config.js (which you’ve already done), and then removing the following imports from main.js (in your case app.js):

import * as components from 'vuetify/components'
import * as directives from 'vuetify/directives'

Leave a comment