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

chunkgitsha not included in generated stats

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript, webpack

Direzione di ricerca

Start by tracing the plugin's webpack integration and the stats.toJson({ hash: true, chunkgitsha: true }) call shown in the issue. Determine how chunkgitsha is currently generated and exposed, then verify that stats includes it and that a separate value can represent the latest commit SHA.

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

Descrizione

First of all, thanks for a great plugin :)

I have a slight issue where the chunkgitsha does not seem to be included in the stats output (so I can't refer to it afterwards). I usually do something like:

var webpack = require('webpack');
var webpackConfig = require('../webpack-production.config');

webpack(webpackConfig, function(err, stats) {
  var jsonstats = stats.toJson({ hash: true, chunkgitsha: true });
  console.log('hash', jsonstats.hash); // this is the webpack compilation hash
  console.log('chunkgitsha', jsonstats.chunkgitsha); // this is undefined
});

Would it be possible to include that in stats somehow?

Also, it would be great with an option to just get the latest commit's sha instead of the latest commit sha that affected the bundle. Maybe another variable, [gitsha] in addition to [chunkgitsha]?

Lingua principale
JavaScript
Stelle
27
Fork
3
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 soundcloud/git-sha-webpack-plugin

Tutte le issue di soundcloud/git-sha-webpack-plugin

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.