X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fbuild%2Fembed.sh;h=66044759fd228e77cec930426a366e3b8da60df5;hb=8e7442d0d818ef25240b46dd1115187c7c042a3a;hp=4be2afc25d68364ca6d6fc26a419a8276fa0a6f1;hpb=818c449b3c34e9f324ac744120c8774e724ab25e;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/build/embed.sh b/scripts/build/embed.sh index 4be2afc25..66044759f 100755 --- a/scripts/build/embed.sh +++ b/scripts/build/embed.sh @@ -4,4 +4,10 @@ set -eu cd client -NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js --mode production --json > "./dist/embed-stats.json" +mkdir -p ./dist/standalone/videos/ + +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