From 85b8b04d7249796698b08ad8e752c0046d4549a4 Mon Sep 17 00:00:00 2001 From: YueGuobin Date: Tue, 21 Apr 2026 00:39:08 +0800 Subject: [PATCH] fix: update bundled web-ui script for newer Angular CLI - Remove deprecated --build-optimizer flag - Update copy path from dist/ to dist/browser/ for new Angular build output Co-Authored-By: Claude Opus 4.6 --- scripts/update-bundled-web-ui.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/update-bundled-web-ui.sh b/scripts/update-bundled-web-ui.sh index b18e17093..eb1cf80f1 100755 --- a/scripts/update-bundled-web-ui.sh +++ b/scripts/update-bundled-web-ui.sh @@ -92,10 +92,9 @@ cd "$REPO_DIR" yarn install -# FIXME: remove --build-optimizer=false -yarn ng build --source-map=false --build-optimizer=false --configuration=production --base-href /static/web-ui/ +yarn ng build --source-map=false --configuration=production --base-href /static/web-ui/ -cp -R $REPO_DIR/dist/* "$GNS3SERVER_DIR/gns3server/static/web-ui/" +cp -R $REPO_DIR/dist/browser/* "$GNS3SERVER_DIR/gns3server/static/web-ui/" cd "$GNS3SERVER_DIR" git add gns3server/static/web-ui/*