From 36a747f667b271291fb3dbd0a1007af7672730fc Mon Sep 17 00:00:00 2001 From: Thibaut Boustany Date: Sun, 24 Jun 2018 20:48:38 +0200 Subject: [PATCH] Prevent env pollution --- scripts/compile.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/compile.sh b/scripts/compile.sh index b297ba94..78c063ea 100644 --- a/scripts/compile.sh +++ b/scripts/compile.sh @@ -2,11 +2,11 @@ set -e -export GIT_REVISION=`git rev-parse HEAD` -export SENTRY_URL=https://db8f5b9b021048d4a401f045371701cb@sentry.io/274561 +GIT_REVISION=`git rev-parse HEAD` +SENTRY_URL=https://db8f5b9b021048d4a401f045371701cb@sentry.io/274561 +NODE_ENV=production rm -rf ./node_modules/.cache dist yarn -rm -rf dist && -NODE_ENV=production yarn run webpack-cli --mode production --config webpack/internals.config.js && -NODE_ENV=production yarn run electron-webpack +yarn run webpack-cli --mode production --config webpack/internals.config.js +yarn run electron-webpack