26
27

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

browserifyでビルドした時のgitのコミットハッシュを埋め込む

Last updated at Posted at 2015-02-23

envifyを使う

index.js
console.log(process.env.GIT_HASH);
$ npm install -g browserify envify
$ broserfy -t [envify --GIT_HASH $(git rev-parse HEAD)] index.js > bundle.js
26
27
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
26
27

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?