File tree 4 files changed +424
-4
lines changed
4 files changed +424
-4
lines changed Original file line number Diff line number Diff line change 45
45
"devDependencies" : {
46
46
"@fontsource/inter" : " ^4.5.15" ,
47
47
"@nuxt/content" : " ^2.4.0" ,
48
+ "@nuxt/devtools" : " ^0.1.0" ,
48
49
"@nuxt/module-builder" : " latest" ,
49
50
"@nuxt/test-utils" : " ^3.1.1" ,
50
51
"@nuxtjs/eslint-config-typescript" : " latest" ,
Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ export default defineNuxtConfig({
2
2
extends : [ './theme' ] ,
3
3
modules : [
4
4
'@nuxt/content' ,
5
- '../src/module'
5
+ '../src/module' ,
6
+ '@nuxt/devtools'
6
7
] ,
7
8
tailwindcss : {
8
9
exposeConfig : true ,
Original file line number Diff line number Diff line change @@ -314,5 +314,21 @@ export default defineNuxtModule<ModuleOptions>({
314
314
logger . info ( `Tailwind Viewer: ${ chalk . underline . yellow ( withTrailingSlash ( viewerUrl ) ) } ` )
315
315
} )
316
316
}
317
+
318
+ if ( nuxt . options . dev ) {
319
+ // @ts -expect-error missing type
320
+ nuxt . hook ( 'devtools:customTabs' , ( tabs ) => {
321
+ tabs . push ( {
322
+ title : 'TailwindCSS' ,
323
+ name : 'tailwindcss' ,
324
+ icon : 'logos-tailwindcss-icon' ,
325
+ view : {
326
+ type : 'iframe' ,
327
+ src : '/_tailwind/'
328
+ }
329
+ } )
330
+ } )
331
+ }
317
332
}
333
+
318
334
} )
You can’t perform that action at this time.
0 commit comments