1
0
Fork 0
peertube/scripts/build/embed.sh

14 lines
399 B
Bash
Raw Normal View History

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