diff options
author | Chocobozzz <me@florianbigard.com> | 2022-06-13 15:15:20 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-06-13 15:15:20 +0200 |
commit | 92148a7a396e9bfb8e46a125cc2e31298fd0fcd5 (patch) | |
tree | 049abe424aaa18179edaa9afac2c548ea888799b /scripts/build | |
parent | 5bb4271edbc2e0bb53b43db7e74fd71625d7f291 (diff) | |
download | PeerTube-92148a7a396e9bfb8e46a125cc2e31298fd0fcd5.tar.gz PeerTube-92148a7a396e9bfb8e46a125cc2e31298fd0fcd5.tar.zst PeerTube-92148a7a396e9bfb8e46a125cc2e31298fd0fcd5.zip |
Fix ng build options
Diffstat (limited to 'scripts/build')
-rwxr-xr-x | scripts/build/client.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/build/client.sh b/scripts/build/client.sh index f4f9b1352..74fb8ca1b 100755 --- a/scripts/build/client.sh +++ b/scripts/build/client.sh | |||
@@ -71,14 +71,14 @@ if [ -z ${1+x} ] || ([ "$1" != "--light" ] && [ "$1" != "--analyze-bundle" ]); t | |||
71 | else | 71 | else |
72 | additionalParams="" | 72 | additionalParams="" |
73 | if [ ! -z ${1+x} ] && [ "$1" == "--analyze-bundle" ]; then | 73 | if [ ! -z ${1+x} ] && [ "$1" == "--analyze-bundle" ]; then |
74 | additionalParams="--namedChunks=true --outputHashing=none" | 74 | additionalParams="--named-chunks=true --output-hashing=none" |
75 | 75 | ||
76 | # For webpack | 76 | # For webpack |
77 | export ANALYZE_BUNDLE=true | 77 | export ANALYZE_BUNDLE=true |
78 | fi | 78 | fi |
79 | 79 | ||
80 | node --max_old_space_size=8192 node_modules/.bin/ng build --localize=false --output-path "dist/$defaultLanguage/" \ | 80 | node --max_old_space_size=8192 node_modules/.bin/ng build --localize=false --output-path "dist/$defaultLanguage/" \ |
81 | --deploy-url "/client/$defaultLanguage/" --configuration production --stats-json $additionalParams | 81 | --configuration production --stats-json $additionalParams |
82 | fi | 82 | fi |
83 | 83 | ||
84 | cp "./dist/$defaultLanguage/manifest.webmanifest" "./dist/manifest.webmanifest" | 84 | cp "./dist/$defaultLanguage/manifest.webmanifest" "./dist/manifest.webmanifest" |