title: How can I inject a build number with webpack?
body: <p>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:</p>
  
  <pre><code>var buildInfo = require("build-info");
  </code></pre>
  
  <p>What would be the best way to generate that <code>build-info</code> module at build time?</p>