I\'d like to inject a build number and version information to my project as it\'s built with webpack. For example, so that my code can do something like:
var bui
You can use the DefinePlugin that will make your build info available inlined with your code:
Config
new webpack.DefinePlugin({ __VERSION__: JSON.stringify('12345') })
App code
console.log(__VERSION__);