wip:
This commit is contained in:
7 files changed
+1150
-172
No files matched your search
@@ -0,0 +1,25 @@
|
||||
import { addVitePlugin, defineNuxtModule } from '@nuxt/kit'
|
||||
import { DevTools } from '@vitejs/devtools'
|
||||
|
||||
export default defineNuxtModule({
|
||||
meta: {
|
||||
name: 'vite',
|
||||
},
|
||||
setup() {
|
||||
addVitePlugin(DevTools())
|
||||
addVitePlugin({
|
||||
name: 'nuxt:devtools',
|
||||
devtools: {
|
||||
setup(ctx) {
|
||||
ctx.docks.register({
|
||||
id: 'nuxt',
|
||||
type: 'iframe',
|
||||
icon: 'https://nuxt.com/assets/design-kit/icon-green.svg',
|
||||
title: 'Nuxt',
|
||||
url: '/__nuxt_devtools__/client/',
|
||||
})
|
||||
},
|
||||
},
|
||||
})
|
||||
},
|
||||
})
|
||||
Reference in new issue
Block a user