diff options
Diffstat (limited to 'scripts/build/embed.sh')
-rwxr-xr-x | scripts/build/embed.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/build/embed.sh b/scripts/build/embed.sh index a243ce640..66044759f 100755 --- a/scripts/build/embed.sh +++ b/scripts/build/embed.sh | |||
@@ -6,4 +6,8 @@ cd client | |||
6 | 6 | ||
7 | mkdir -p ./dist/standalone/videos/ | 7 | mkdir -p ./dist/standalone/videos/ |
8 | 8 | ||
9 | NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js --mode production --json > "./dist/standalone/videos/embed-stats.json" | 9 | if [ ! -z ${ANALYZE_BUNDLE+x} ] && [ "$ANALYZE_BUNDLE" == true ]; then |
10 | NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js --mode production --json > "./dist/standalone/videos/embed-stats.json" | ||
11 | else | ||
12 | NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js --mode production | ||
13 | fi | ||