From f7a51bcb8ffd553998ce41950c83b43f4c17818e Mon Sep 17 00:00:00 2001 From: Timo Date: Mon, 31 May 2021 16:04:03 +0300 Subject: [PATCH] updated build cmd --- docker/red-ui/Dockerfile | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/red-ui/Dockerfile b/docker/red-ui/Dockerfile index 7912924b6..db5c4e445 100644 --- a/docker/red-ui/Dockerfile +++ b/docker/red-ui/Dockerfile @@ -23,7 +23,7 @@ COPY versions.sh version.sh ## Build the angular app in production mode and store the artifacts in dist folder RUN yarn lint -RUN yarn build --prod --project=red-ui --base-href /ui/ +RUN yarn build --configuration production --project=red-ui --base-href /ui/ ### STAGE 2: Setup ### diff --git a/package.json b/package.json index ff43ad1da..299cfa29a 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "affected:lint": "nx affected:lint", "affected:test": "nx affected:test", "build": "nx build", - "build-lint-all": "ng lint --project=red-ui-http --fix && ng build --project=red-ui-http && ng lint --project=red-ui --fix && ng build --project=red-ui --prod", + "build-lint-all": "ng lint --project=red-ui-http --fix && ng build --project=red-ui-http && ng lint --project=red-ui --fix && ng build --project=red-ui --configuration production", "dep-graph": "nx dep-graph", "e2e": "nx e2e", "format": "nx format:write",