embed.sh 399 B

12345678910111213
  1. #!/bin/bash
  2. set -eu
  3. cd client
  4. mkdir -p ./dist/standalone/videos/
  5. if [ ! -z ${ANALYZE_BUNDLE+x} ] && [ "$ANALYZE_BUNDLE" == true ]; then
  6. NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js --mode production --json > "./dist/standalone/videos/embed-stats.json"
  7. else
  8. NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js --mode production
  9. fi