The work in this repository will be moved later to the official Vuetify Nuxt Module repository.
This new version includes:
- added missing composables from 3.18 to 3.10 versions:
useHotkey( from Vuetify v3.8.0)useMask(from Vuetify v3.10.0)useRules(from Vuetify v3.8.0 from labs =>vuetify/labs/composables)
- use @unvuetify-monorepo utilities, check the package features comparison in the readme file
- removed all Vite plugins, now the configuration is merged directly and exposed by Nuxt "virtual" modules and now it is statically analizable:
- use
#build/vuetify/configuration.mjsto access the configuration - use
#build/vuetify/ssr-client-hints-configuration.mjsto access the SSR Client hints configuration - use
defineVuetifyConfigurationfromvuetify-nuxt-module/custom-configurationto addvuetify.config.[m]?[tj]sfile at Nuxt root folder or layers.
- use
- added support for the new Vuetify validation rules:
- use
#build/vuetify/labs-rules-configuration.mjsto access the configuration - use
defineVuetifyLabsRulesConfigurationfromvuetify-nuxt-module/custom-labs-rules-configurationto addvuetify.rules.[m]?[tj]sfile at Nuxt root folder or layers - enable the new
enableVuetifyRulesoption, and the module will register the Vuetify Rules Vue plugin for you
- use
- included
defineVuetifyConfigurationanddefineVuetifyLabsRulesConfigurationtonodereferences
The new module still have the existing Nuxt Runtime Hooks: check types.ts file for more information.
The new configuration using AsyncGenerators to load the configuration files, check load-configuration.ts module.
You can play here with the playground workspace (latest Nuxt 4 with Nuxt 3 layout), run the following commands from the root folder:
pnpm install --frozen-lockfilepnpm dev:prepareto prepare the playgroundpnpm devto start the Nuxt development server
You can also play with this Nuxt 4 playground repository with latest Nuxt 4 layout, using local vuetify-nuxt-module-1.0.0.tgz file from this repository (pnpm install --frozen-lockfile && pnpm pack) and pkg-pr-new dependencies from this PR at @unvuetify-monorepo (will be merged and released a new version soon):
pnpm install --frozen-lockfilepnpm postinstallto prepare the playgroundpnpm devto start the Nuxt development server