From 4705831031f7a3d7cda41341667a41ee7031e8b5 Mon Sep 17 00:00:00 2001 From: Mike Cooper Date: Fri, 1 May 2020 15:51:27 -0700 Subject: [PATCH] Use version from package.json in non-development --- webpack.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index d89a47d6..569e9aa4 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -142,12 +142,14 @@ module.exports = async (env, argv = {}) => { async function getBuildInfo(isDevelopment) { const rv = { - version: (await execOutput("git describe --dirty=-uc")).trim(), commitHash: (await execOutput("git rev-parse HEAD")).trim(), }; if (isDevelopment) { rv.isDevelopment = true; + rv.version = (await execOutput("git describe --dirty=-uc")).trim(); + } else { + rv.version = packageData.version; } if (rv.version.endsWith("-uc")) {