aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/build/embed.sh
blob: 66044759fd228e77cec930426a366e3b8da60df5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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