Doing the short hash correctly

This commit is contained in:
Jeff Avallone 2018-02-11 12:18:29 -05:00
parent e0716ef683
commit 4600d1748a

View File

@ -45,7 +45,7 @@ module.exports = {
BUILD_ID: [
process.env.CIRCLE_BRANCH || 'prerelease',
process.env.CIRCLE_BUILD_NUM || '##',
(process.env.CIRCLE_SHA1 || 'gitsha').slice(-7)
(process.env.CIRCLE_SHA1 || 'gitsha').slice(0, 7)
].join('-')
}),
new webpack.optimize.CommonsChunkPlugin({