Make `--log` Configurable via `vite.config.ts`

Offen
#2,914 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@wan9chi arbeitet bereits daran.

Seit 07.10.2026.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
58/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript
Bereich
cli, tooling

Rechercherichtung

Start by tracing how vp run currently reads the --log option and where vite.config.ts configuration is loaded. Check the relevant tests for the existing log modes; done means the new run.log setting supports labeled, grouped, and interleaved and controls task output as proposed.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

pending triage
Description

Right now, the only way to get prefixes added to the task output to differentiate tasks is via the --log argument argument in the vp run command.

This is annoying when trying to keep your package.json scripts simple and also splits your behavior configuration across these arguments and you main vite.config.ts.

Suggested solution

I suggest making that configurable via vite.config.ts in a new run -> log field of the configuration.

import { defineConfig } from "vite-plus";

export default defineConfig({
  run: {
    // New `log` field controlling what is currently set via `--log`
    log: "labeled" // or "grouped" or "interleaved"
  },
});
Alternative

No response

Additional context

No response

Validations
  • Read the Contributing Guidelines.
  • Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
  • Check that there isn't already an issue requesting the same feature.
Vorherrschende Sprache
TypeScript
Sterne
6.6k
Forks
303
Ø Merge
1 T. 5 Std.
Gemergte PRs (30 T.)
212

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus voidzero-dev/vite-plus

Alle Issues in voidzero-dev/vite-plus

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.