From 449554f6b6f33e77ae9e6de3385c3db8059eb244 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 1 Nov 2019 23:31:04 +0000 Subject: [PATCH] Hack around the lack of raw environment support in `parcel` It only supports env files, so let's make one when creating a production build --- scripts/release.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/release.sh b/scripts/release.sh index f56308d..3765d96 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -4,4 +4,7 @@ set -e source ./scripts/common.sh +# Expose environment variables so `parcel-bundler` can access them +env > $BASEDIR/.env + ./scripts/build.sh --minify