vuejs / vuejs/devtools

Exclude routes/print mode

Open
#774 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.9k
Forks
279
PR merge metrics
No merged PRs in 30d

Description

We are using the Vite Plugin installation method and have a use case where certain routes are for printing only(no interaction); details/uuid/print. On these routes the dev tool still attaches itself resulting in the icon showing up.

It's a minor inconvenience but I was surprised there wasn't some way of handling this. Our current solution is to just hide it using CSS

@media print {
  #__vue-devtools-container__ {
    display: none;
  }
}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the Vite Plugin's devtools injection and how it identifies routes. Check whether the print-only route pattern can be excluded without affecting regular routes, and verify that the devtools icon is absent on details/uuid/print while remaining available elsewhere.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vite
Domain
devtools, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.