aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/build/embed.sh
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-08-18 10:32:40 +0200
committerChocobozzz <me@florianbigard.com>2021-08-18 10:32:40 +0200
commit33a53638c2b7a41a4e39558582f604d3036d4fa3 (patch)
tree4d68302f4be0a64a41955ff590db0977dd78b3a3 /scripts/build/embed.sh
parent64ef55f7c86c450d7264b6e6623c1c298657e9cb (diff)
downloadPeerTube-33a53638c2b7a41a4e39558582f604d3036d4fa3.tar.gz
PeerTube-33a53638c2b7a41a4e39558582f604d3036d4fa3.tar.zst
PeerTube-33a53638c2b7a41a4e39558582f604d3036d4fa3.zip
Embed stats only when needed
Diffstat (limited to 'scripts/build/embed.sh')
-rwxr-xr-xscripts/build/embed.sh6
1 files changed, 5 insertions, 1 deletions
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