mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-27 18:30:35 +01:00
docs(badge): update
This commit is contained in:
@@ -116,16 +116,11 @@ export default defineNuxtConfig({
|
||||
},
|
||||
|
||||
hooks: {
|
||||
// Related to https://github.com/nuxt/nuxt/pull/22558
|
||||
// 'components:extend': (components) => {
|
||||
// components.forEach((component) => {
|
||||
// if (component.shortPath.includes('@nuxt/ui-pro')) {
|
||||
// component.global = true
|
||||
// } else if (component.global) {
|
||||
// component.global = 'sync'
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
'components:extend': (components) => {
|
||||
const globals = components.filter(c => ['UBadge'].includes(c.pascalName))
|
||||
|
||||
globals.forEach(c => c.global = 'sync')
|
||||
}
|
||||
},
|
||||
|
||||
// vite: {
|
||||
|
||||
Reference in New Issue
Block a user