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