]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/build/embed.sh
Translated using Weblate (Croatian)
[github/Chocobozzz/PeerTube.git] / scripts / build / embed.sh
index 3fcfc6ba2ef0f9ac4fbf1430f66dfd791faa8718..66044759fd228e77cec930426a366e3b8da60df5 100755 (executable)
@@ -5,4 +5,9 @@ set -eu
 cd client
 
 mkdir -p ./dist/standalone/videos/
-NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js --mode production --json > "./dist/standalone/videos/embed-stats.json"
+
+if [ ! -z ${ANALYZE_BUNDLE+x} ] && [ "$ANALYZE_BUNDLE" == true ]; then
+  NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js --mode production --json > "./dist/standalone/videos/embed-stats.json"
+else
+  NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js --mode production
+fi