aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/build
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build')
-rwxr-xr-xscripts/build/client.sh2
-rwxr-xr-xscripts/build/embed.sh6
2 files changed, 7 insertions, 1 deletions
diff --git a/scripts/build/client.sh b/scripts/build/client.sh
index 5ecbff28d..e891b217c 100755
--- a/scripts/build/client.sh
+++ b/scripts/build/client.sh
@@ -69,6 +69,8 @@ else
69 additionalParams="" 69 additionalParams=""
70 if [ ! -z ${1+x} ] && [ "$1" == "--analyze-bundle" ]; then 70 if [ ! -z ${1+x} ] && [ "$1" == "--analyze-bundle" ]; then
71 additionalParams="--namedChunks=true --outputHashing=none" 71 additionalParams="--namedChunks=true --outputHashing=none"
72
73 # For webpack
72 export ANALYZE_BUNDLE=true 74 export ANALYZE_BUNDLE=true
73 fi 75 fi
74 76
diff --git a/scripts/build/embed.sh b/scripts/build/embed.sh
index a243ce640..66044759f 100755
--- a/scripts/build/embed.sh
+++ b/scripts/build/embed.sh
@@ -6,4 +6,8 @@ cd client
6 6
7mkdir -p ./dist/standalone/videos/ 7mkdir -p ./dist/standalone/videos/
8 8
9NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js --mode production --json > "./dist/standalone/videos/embed-stats.json" 9if [ ! -z ${ANALYZE_BUNDLE+x} ] && [ "$ANALYZE_BUNDLE" == true ]; then
10 NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js --mode production --json > "./dist/standalone/videos/embed-stats.json"
11else
12 NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js --mode production
13fi