File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ export default defineNuxtConfig({
6
6
'@nuxt/devtools'
7
7
] ,
8
8
tailwindcss : {
9
+ viewer : false ,
9
10
exposeConfig : true ,
10
11
injectPosition : 'last'
11
12
} ,
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import {
18
18
} from '@nuxt/kit'
19
19
import { Config } from 'tailwindcss'
20
20
import { eventHandler , sendRedirect } from 'h3'
21
+ import { optionalCallExpression } from '@babel/types'
21
22
import { name , version } from '../package.json'
22
23
import vitePlugin from './hmr'
23
24
import defaultTailwindConfig from './tailwind.config'
@@ -320,7 +321,7 @@ export default defineNuxtModule<ModuleOptions>({
320
321
} )
321
322
}
322
323
323
- if ( nuxt . options . dev ) {
324
+ if ( nuxt . options . dev && moduleOptions . viewer ) {
324
325
// @ts -expect-error missing type
325
326
nuxt . hook ( 'devtools:customTabs' , ( tabs ) => {
326
327
tabs . push ( {
You can’t perform that action at this time.
0 commit comments