diff --git a/scripts/compile.sh b/scripts/compile.sh index c91606cd..3486c2b9 100644 --- a/scripts/compile.sh +++ b/scripts/compile.sh @@ -2,11 +2,10 @@ set -e -GIT_REVISION=`git rev-parse HEAD` -SENTRY_URL=https://db8f5b9b021048d4a401f045371701cb@sentry.io/274561 -NODE_ENV=production +export GIT_REVISION=`git rev-parse HEAD` +export SENTRY_URL=https://db8f5b9b021048d4a401f045371701cb@sentry.io/274561 rm -rf ./node_modules/.cache dist JOBS=max yarn -yarn run webpack-cli --mode production --config webpack/internals.config.js -yarn run electron-webpack +NODE_ENV=production yarn run webpack-cli --mode production --config webpack/internals.config.js +NODE_ENV=production yarn run electron-webpack