You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use Vuetify 3 APIs like useTheme without manually importing, via unplugin-auto-import. It's a little cumbersome to add Vuetify's APIs to plugin's config in each of my Vuetify project. I wonder if the official plugin of Vuetify can export this preset.
I once opened a PR unjs/unimport#225 (comment) but the maintainer thought it might be better to have Vuetify to provide the list.
As shown in the example of unplugin-vue-router, we might use Vuetify API preset like this:
import{defineConfig}from'vite'importAutoImportfrom'unplugin-auto-import/vite'import{vuetifyAutoImports}from'vite-plugin-vuetify'exportdefaultdefineConfig({plugins: [// other pluginsAutoImport({imports: [vuetifyAutoImports,],}),],})
The text was updated successfully, but these errors were encountered:
I want to use Vuetify 3 APIs like
useTheme
without manually importing, via unplugin-auto-import. It's a little cumbersome to add Vuetify's APIs to plugin's config in each of my Vuetify project. I wonder if the official plugin of Vuetify can export this preset.I once opened a PR unjs/unimport#225 (comment) but the maintainer thought it might be better to have Vuetify to provide the list.
As shown in the example of
unplugin-vue-router
, we might use Vuetify API preset like this:The text was updated successfully, but these errors were encountered: