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
Copy file name to clipboardExpand all lines: README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -200,3 +200,15 @@ Type: `Boolean`
200
200
Default: `false`
201
201
202
202
Use GraphicsMagic instead of ImageMagick
203
+
204
+
##### `registerStylesSSR`
205
+
206
+
Type: `Boolean`
207
+
Default: `false`
208
+
209
+
Register Vuetify styles in [vue-style-loader](https://github.com/vuejs/vue-style-loader).
210
+
211
+
This fixes styles not being loaded when doing SSR (for example when using [@nuxtjs/vuetify](https://github.com/nuxt-community/vuetify-module)).
212
+
As Vuetify imports styles with JS, without this option, they do not get picked up by SSR.
213
+
214
+
⚠️ This option requires having `manualInject` set to `true` in [`vue-style-loader`](https://github.com/vuejs/vue-style-loader#options) config.
// This is required so that groups picks up dependencies they have to other groups.
42
+
// For example VTabs depends on the style from VSlideGroup (VSlideGroup.sass).
43
+
// As VSlideGroup will be loaded before (alphabetically), `Module._load` wouldn't be called for it when processing VTabs (as it would be already in the require cache).
44
+
// By busting the require cache for each groups we unsure that when loading VTabs we do call `Module._load` for `VSlideGroup.sass` and it gets added to the dependencies.
45
+
decache(`vuetify/es5/components/${group}`)
29
46
})
30
47
48
+
// This makes sure Vuetify main styles will be injected.
49
+
// Using VApp as it's must be present for Vuetify to work, and it must only be there once.
0 commit comments