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
Go to list of users who liked
More than 5 years have passed since last update.
envifyを使う
console.log(process.env.GIT_HASH);
$ npm install -g browserify envify
$ broserfy -t [envify --GIT_HASH $(git rev-parse HEAD)] index.js > bundle.js
Register as a new user and use Qiita more conveniently
Go to list of users who liked