From 03d641a0d7f996de44ec898ad739bc4050514ba1 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 17 Dec 2019 16:17:22 +0100 Subject: Add embed api build --- scripts/build/client.sh | 2 +- scripts/build/embed.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/build') diff --git a/scripts/build/client.sh b/scripts/build/client.sh index fd9190660..d95bb9574 100755 --- a/scripts/build/client.sh +++ b/scripts/build/client.sh @@ -62,7 +62,7 @@ if [ -z ${1+x} ] || [ "$1" != "--light" ]; then done fi -npm run build:embed +cd ../ && npm run build:embed && cd client/ # Copy runtime locales cp -r "./src/locale" "./dist/locale" diff --git a/scripts/build/embed.sh b/scripts/build/embed.sh index ea5e7d57d..47e195d96 100755 --- a/scripts/build/embed.sh +++ b/scripts/build/embed.sh @@ -2,4 +2,6 @@ set -eu +cd client + NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js --mode production --json > "./dist/embed-stats.json" -- cgit v1.2.3