Fix ng build options

pull/5067/head
Chocobozzz 2022-06-13 15:15:20 +02:00
parent 5bb4271edb
commit 92148a7a39
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 2 deletions

View File

@ -71,14 +71,14 @@ if [ -z ${1+x} ] || ([ "$1" != "--light" ] && [ "$1" != "--analyze-bundle" ]); t
else
additionalParams=""
if [ ! -z ${1+x} ] && [ "$1" == "--analyze-bundle" ]; then
additionalParams="--namedChunks=true --outputHashing=none"
additionalParams="--named-chunks=true --output-hashing=none"
# For webpack
export ANALYZE_BUNDLE=true
fi
node --max_old_space_size=8192 node_modules/.bin/ng build --localize=false --output-path "dist/$defaultLanguage/" \
--deploy-url "/client/$defaultLanguage/" --configuration production --stats-json $additionalParams
--configuration production --stats-json $additionalParams
fi
cp "./dist/$defaultLanguage/manifest.webmanifest" "./dist/manifest.webmanifest"