Skip to content

Commit e587be0

Browse files
authored
docs: update tree-shake option (#398)
1 parent d4e6687 commit e587be0

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,21 @@ export default function ({ app }) {
189189

190190
### `treeShake`
191191

192-
- Type: `Boolean`
192+
- Type: `Object` or `Boolean`
193193
- Default: `process.env.NODE_ENV === 'production'`
194194

195195
Uses [vuetify-loader](https://github.com/vuetifyjs/vuetify-loader) to enable automatic [tree-shaking](https://vuetifyjs.com/en/customization/a-la-carte).
196196
Enabled only for production by default.
197197

198+
You can set object as a set of options to [manually import](https://vuetifyjs.com/en/features/treeshaking/#manually-importing) Vuetify modules globally:
199+
200+
| Key | Type | Value |
201+
| --- | --- | --- |
202+
| components | string[] | array of name of Vuetify components to import globally |
203+
| directives | string[] | array of name of Vuetify directives to import globally |
204+
| loaderOptions | function | loader option which applies to VuetifyLoaderPlugin |
205+
| transitions | string[] | array of name of [Vuetify transitions](https://vuetifyjs.com/en/styles/transitions/) to import globally |
206+
198207
## TypeScript
199208

200209
If you're using TypeScript, you'll need to add `@nuxtjs/vuetify` in your `compilerOptions` of your `tsconfig.json` :

0 commit comments

Comments
 (0)