-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
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]?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels