This commit is contained in:
Anthony Fu committed 2025-10-27 10:35:23 +09:00
1 parent 065fc323f6
commit 662b06fab8
7 files changed
+338 -49

No files matched your search

+14
View File
@@ -11,6 +11,13 @@ export default defineNuxtModule({
name: 'nuxt:devtools',
devtools: {
setup(ctx) {
ctx.docks.register({
id: 'vitest',
type: 'iframe',
icon: 'https://vitest.dev/logo.svg',
title: 'Vitest',
url: 'http://localhost:51204/__vitest__/#/',
})
ctx.docks.register({
id: 'nuxt',
type: 'iframe',
@@ -18,6 +25,13 @@ export default defineNuxtModule({
title: 'Nuxt',
url: '/__nuxt_devtools__/client/',
})
ctx.docks.register({
id: 'unocss',
type: 'iframe',
icon: 'https://unocss.dev/logo.svg',
title: 'Vitest',
url: '/__unocss',
})
},
},
})