]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - scripts/build/embed.sh
Merge branch 'release/4.0.0' into develop
[github/Chocobozzz/PeerTube.git] / scripts / build / embed.sh
1 #!/bin/bash
2
3 set -eu
4
5 cd client
6
7 mkdir -p ./dist/standalone/videos/
8
9 if [ ! -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"
11 else
12 NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js --mode production
13 fi