diff options
author | Chocobozzz <me@florianbigard.com> | 2021-05-14 16:56:44 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-05-27 16:00:13 +0200 |
commit | 662351e62669d11f5dfb7c871edf37095ec0097e (patch) | |
tree | bd8fa17b4435cd6ae06a561b34b214d95e91ac08 /scripts/build | |
parent | 9aff616d5051a93f69a96fd567f0563982019d15 (diff) | |
download | PeerTube-662351e62669d11f5dfb7c871edf37095ec0097e.tar.gz PeerTube-662351e62669d11f5dfb7c871edf37095ec0097e.tar.zst PeerTube-662351e62669d11f5dfb7c871edf37095ec0097e.zip |
Update embed webpack config
Diffstat (limited to 'scripts/build')
-rwxr-xr-x | scripts/build/client.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/build/client.sh b/scripts/build/client.sh index aec138653..91147fc51 100755 --- a/scripts/build/client.sh +++ b/scripts/build/client.sh | |||
@@ -49,7 +49,7 @@ if [ -z ${1+x} ] || ([ "$1" != "--light" ] && [ "$1" != "--analyze-bundle" ]); t | |||
49 | additionalParams="--sourceMap=true" | 49 | additionalParams="--sourceMap=true" |
50 | fi | 50 | fi |
51 | 51 | ||
52 | npm run ng build -- --prod --output-path "dist/build" $additionalParams | 52 | npm run ng build -- --configuration production --output-path "dist/build" $additionalParams |
53 | 53 | ||
54 | for key in "${!languages[@]}"; do | 54 | for key in "${!languages[@]}"; do |
55 | lang=${languages[$key]} | 55 | lang=${languages[$key]} |
@@ -72,7 +72,8 @@ else | |||
72 | export ANALYZE_BUNDLE=true | 72 | export ANALYZE_BUNDLE=true |
73 | fi | 73 | fi |
74 | 74 | ||
75 | npm run ng build -- --localize=false --output-path "dist/$defaultLanguage/" --deploy-url "/client/$defaultLanguage/" --prod --stats-json $additionalParams | 75 | npm run ng build -- --localize=false --output-path "dist/$defaultLanguage/" \ |
76 | --deploy-url "/client/$defaultLanguage/" --configuration production --stats-json $additionalParams | ||
76 | fi | 77 | fi |
77 | 78 | ||
78 | cp "./dist/$defaultLanguage/manifest.webmanifest" "./dist/manifest.webmanifest" | 79 | cp "./dist/$defaultLanguage/manifest.webmanifest" "./dist/manifest.webmanifest" |