Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Nice to Have] plugin should use webpack InfrastructureLogger and output report to compiler.outputFileSystem

Aperta
#476 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

  • #477 di @wood1986 — chiusa senza merge

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript, webpack
Ambito
build-system

Direzione di ricerca

Inizia in BundleAnalyzerPlugin.js tracciando come vengono emessi i messaggi del plugin e come viene scritto report.html durante le esecuzioni di webpack-dev-server. Esamina il test Jest esistente e le API del compilatore webpack, quindi verifica che il logging utilizzi InfrastructureLogger e che il report venga scritto tramite compiler.outputFileSystem senza apparire in dist.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Issue description

There are 2 issues for the plugin code(not bin/analyzer). Currently, it is not a bug but nice to have

  1. BundleAnalyzerPlugin.js should use InfrastructureLogger from webpack compiler. When I run my jest test, there are some noise message from the plugin. See the following screenshot.
    image
    I can silent the console.log for my jest test. But I have to write some to find the plugin in my shared webpack.config.js and then replace the existing plugin with another one to silent log messages.
  2. When I launch the webpack-dev-server, I expect my dist should be empty. Currently it always has report.html. Other assets are in memfs. I have a jest test to check the folder is empty. Now I have to write more code to handle it differently
    image
Lingua principale
JavaScript
Stelle
12.7k
Fork
514
Merge medio
4g 17h
PR unite (30g)
3

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di webpack/webpack-bundle-analyzer

Tutte le issue di webpack/webpack-bundle-analyzer

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.