devtools icon indicating copy to clipboard operation
devtools copied to clipboard

How to disable devtools ?

Open Mikaleb opened this issue 1 year ago • 21 comments

Is there an option to disable this shiny new devtool ?

Mikaleb avatar May 27 '24 13:05 Mikaleb

This may help: https://vitejs.dev/guide/using-plugins#conditional-application

Yordan-Ramchev avatar May 27 '24 17:05 Yordan-Ramchev

Not working :/

Mikaleb avatar May 28 '24 11:05 Mikaleb

Can you unregister vite-plugin-vue-devtools in plugin options of vite.config.{j,t}s?

alexzhang1030 avatar May 29 '24 03:05 alexzhang1030

Is there an option to disable this shiny new devtool ?

What is the reason to disable it and what are the conditions to either show it or not? I think you could provide more context about what is it what you expect, @Mikaleb...

paulmelero avatar May 29 '24 08:05 paulmelero

@gangsthub I was also looking for something like this in the way of only having it enabled in a development environment and disabled in production. Something like how Inspector does it with a configurable enabled flag, see example below (probably not correct off the top of my head).

vite.config.ts

VueDevTools({
 enabled: process.env === 'development',
 launchEditor: 'code'
}),

HybridEyeGrillage avatar May 29 '24 14:05 HybridEyeGrillage

Currently, DevTools will be forcibly enabled during development (vite dev) and will never be bundled in production (vite build). So, don't worry about that.

alexzhang1030 avatar May 29 '24 15:05 alexzhang1030

Currently, DevTools will be forcibly enabled during development (vite dev) and will never be bundled in production (vite build). So, don't worry about that.

maybe he want to disable the tool, when the envirment is develop.

just use shotcut to show tool's UI, but don't show the icon always.

LukerSpringtree avatar Jun 15 '24 16:06 LukerSpringtree

Currently, DevTools will be forcibly enabled during development (vite dev) and will never be bundled in production (vite build). So, don't worry about that.

maybe he want to disable the tool, when the envirment is develop.

just use shotcut to show tool's UI, but don't show the icon always.

image

You can disable this option to do this.

alexzhang1030 avatar Jun 19 '24 03:06 alexzhang1030

Is there an option to disable this shiny new devtool ?

What is the reason to disable it and what are the conditions to either show it or not? I think you could provide more context about what is it what you expect, @Mikaleb...

I think the corresponding habit settings can be saved in the project's .local, for example:

  1. Scenario 1: Enter pinia, open the store / time by default.
  2. Project members prefer the chrome extension version of vue dev. You can set whether to enable it in .local.
  3. [Critical] At the same time, the settings item reads .local, and developers sometimes need to clear localStorage, resulting in the settings item being repeatedly set.

eachann1024 avatar Jun 28 '24 02:06 eachann1024

You can disable this option to do this.

How to open it again? Lmao... It disappeared and I don't get it how to open it back again.

First, I try to search HOW TO DISABLE IT, spend 10 minutes on it, find old solution, doesn't work Find this, fine, toggle this thingy, it disappears completely

Are you serious?

I understand that devtools is a good and helpful thing, but UX is severely lacking on this one...

gazedash avatar Aug 31 '24 19:08 gazedash

You can disable this option to do this.

How to open it again? Lmao... It disappeared and I don't get it how to open it back again.

First, I try to search HOW TO DISABLE IT, spend 10 minutes on it, find old solution, doesn't work Find this, fine, toggle this thingy, it disappears completely

Are you serious?

I understand that devtools is a good and helpful thing, but UX is severely lacking on this one...

Yeah, our shortcut descriptions are very lacking 😅. And sorry our contributors are currently very busy and not too active in solving this issue 🥲.

Anyway, this is a brief:

How to disable the devtools anchor?

You can disable the option called Always show the floating panel on the Settings page.

How to open it again?

By shortcut

  • cmd + shift + D in macOS
  • alt + shift + D in Windows

align with Nuxt devtools.

alexzhang1030 avatar Sep 02 '24 02:09 alexzhang1030

I love this tool! It's very handy.

Unfortunately, it's also breaking my Cypress tests in my local development environment. I need to be able to programmatically prevent the floating buttons from appearing within Cypress, preferably without removing them completely from my development environment.

dash- avatar Sep 04 '24 23:09 dash-

@dash- Does that mean vue-devtools works for you in a cypress environment? As in: You could actually interact with them in a cypress-driven browser? Because that is what I am trying to achieve at the moment, but they just keep loading forever. (I guess I am having the opposite of your problem).

NiklasBeierl avatar Sep 06 '24 13:09 NiklasBeierl

Currently, DevTools will be forcibly enabled during development (vite dev) and will never be bundled in production (vite build). So, don't worry about that.

(cc @alexzhang1030 ) I think this is worth mentioning in the main documentation, or in the FAQ. It's not clear (at least to me, and probably other developers) that the plugin doesn't get included in vite build steps out-of-the-box without any user configuration.

tryforceful avatar Nov 19 '24 11:11 tryforceful

Currently, DevTools will be forcibly enabled during development (vite dev) and will never be bundled in production (vite build). So, don't worry about that.

(cc @alexzhang1030 ) I think this is worth mentioning in the main documentation, or in the FAQ. It's not clear (at least to me, and probably other developers) that the plugin doesn't get included in vite build steps out-of-the-box without any user configuration.

make sense, I will update it

alexzhang1030 avatar Nov 19 '24 14:11 alexzhang1030

Does anyone have a fix for removing this annoying floating panel thing?

image

I have the option turned off.. but the thing keeps reappearing?

image

Other than doing this little hack.

image

WORMSS avatar Nov 21 '24 11:11 WORMSS

Comment out import vueDevTools from 'vite-plugin-vue-devtools' in vite.config.js then comment out vueDevTools() from the plugins vite config ts

lbhopper avatar Dec 04 '24 16:12 lbhopper

Currently, DevTools will be forcibly enabled during development (vite dev) and will never be bundled in production (vite build). So, don't worry about that.

maybe he want to disable the tool, when the envirment is develop. just use shotcut to show tool's UI, but don't show the icon always.

image You can disable this option to do this.

this option is no longer there image

walmon avatar Jan 10 '25 12:01 walmon

How to open it again?

By shortcut

  • cmd + shift + D in macOS
  • alt + shift + D in Windows

align with Nuxt devtools.

for me it was

  • shift + option + D in macOS

ahsath avatar Apr 30 '25 02:04 ahsath

The option to disable it is no longer available in the settings like @walmon wrote. Did it move some place else?

wuestkamp avatar Jun 27 '25 04:06 wuestkamp