1
0
Fork 0
peertube/scripts/build/embed.sh
2021-08-18 10:32:40 +02:00

13 lines
399 B
Bash
Executable file

#!/bin/bash
set -eu
cd client
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