Options
Configure Vuxtify with the vuxtify
property in your nuxt.config.ts
file.
nuxt.config.ts
export default defineNuxtConfig({
vuxtify: {
// Default Options
treeShaking: false,
compressAssets: false,
debug: false,
}
})
treeShaking
- Type:
boolean
|object
- Default:
false
Enables automatic tree shaking for Vuetify, using the method described in the Vuetify Docs.
Depending on the build
property defined in your nuxt.config.ts
file (either vite
or webpack
), the appropriate Vuetify build plugin will be used with the provided options.
If your project is missing the appropriate dependencies, for your build tool, the module will prompt you to install them.
compressAssets
- Type:
boolean
- Default:
false
Compresses your nuxt assets by enabling nitro's compressPublicAssets
option. This helps your project perform better in light house audits.
debug
- Type:
boolean
- Default:
false
Enables the modules debug logger. This will log information about the module's behavior to the console.
Table of Contents