]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/build/client.sh
Translated using Weblate (Greek)
[github/Chocobozzz/PeerTube.git] / scripts / build / client.sh
index 0e7925be5c29c9a153a647ae9b9948c8abf3f479..fd072b18c667437d0c35733fe6d0e232d1499745 100755 (executable)
@@ -43,7 +43,12 @@ rm -rf ./dist ./compiled
 
 # Don't build other languages if --light arg is provided
 if [ -z ${1+x} ] || ([ "$1" != "--light" ] && [ "$1" != "--analyze-bundle" ]); then
-    npm run ng build -- --prod --output-path "dist/build"
+    additionalParams=""
+    if [ ! -z ${1+x} ] && [ "$1" == "--source-map" ]; then
+        additionalParams="--sourceMap=true"
+    fi
+
+    npm run ng build -- --prod --output-path "dist/build" $additionalParams
 
     for key in "${!languages[@]}"; do
         lang=${languages[$key]}