Remove build hash from release builds (#2974)
This commit is contained in:
parent
9b36c25e4e
commit
4eec77d299
|
@ -14,7 +14,7 @@ const webpack = require('webpack');
|
|||
const VERSION = childProcess.execSync('git rev-parse --short HEAD').toString();
|
||||
const isProduction = process.env.NODE_ENV === 'production';
|
||||
const isTest = process.env.NODE_ENV === 'test';
|
||||
const isRelease = process.env.CIRCLE_BRANCH && process.env.CIRCLE_BRANCH.startsWith('release-');
|
||||
const isRelease = process.env.GITHUB_WORKFLOW && process.env.GITHUB_WORKFLOW.startsWith('release');
|
||||
|
||||
const codeDefinitions = {
|
||||
__HASH_VERSION__: !isRelease && JSON.stringify(VERSION),
|
||||
|
|
Loading…
Reference in a new issue