X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fbuild%2Fembed.sh;h=66044759fd228e77cec930426a366e3b8da60df5;hb=33a53638c2b7a41a4e39558582f604d3036d4fa3;hp=a243ce64095301f174871a8ac7035cdc71263af3;hpb=64ef55f7c86c450d7264b6e6623c1c298657e9cb;p=github%2FChocobozzz%2FPeerTube.git 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 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