PeerTube/scripts/build/embed.sh

14 lines
399 B
Bash
Raw Normal View History

2020-02-19 01:57:32 -06:00
#!/bin/bash
2019-12-17 08:33:58 -06:00
set -eu
2019-12-17 09:17:22 -06:00
cd client
2020-08-06 03:26:39 -05:00
mkdir -p ./dist/standalone/videos/
2020-06-26 01:37:26 -05:00
2021-08-18 03:32:40 -05:00
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