From 76acf2b01d8e4dd5e6eb159b5aa758a1bcc00765 Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 3 Jan 2023 08:17:12 -0800 Subject: [PATCH] Updated build instructions to remove --prod --- docs/development.md | 2 +- src-ui/README.md | 2 +- src-ui/src/environments/environment.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/development.md b/docs/development.md index d36cd12ed..7515406f4 100644 --- a/docs/development.md +++ b/docs/development.md @@ -248,7 +248,7 @@ Testing and code style: In order to build the front end and serve it as part of django, execute ```shell-session -$ ng build --prod +$ ng build --configuration production ``` This will build the front end and put it in a location from which the diff --git a/src-ui/README.md b/src-ui/README.md index 568ba0874..0eb379956 100644 --- a/src-ui/README.md +++ b/src-ui/README.md @@ -12,7 +12,7 @@ Run `ng generate component component-name` to generate a new component. You can ## Build -Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build. +Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--configuration production` flag for a production build. ## Running unit tests diff --git a/src-ui/src/environments/environment.ts b/src-ui/src/environments/environment.ts index 4386bef1e..b4af67c25 100644 --- a/src-ui/src/environments/environment.ts +++ b/src-ui/src/environments/environment.ts @@ -1,5 +1,5 @@ // This file can be replaced during build by using the `fileReplacements` array. -// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`. +// `ng build --configuration production` replaces `environment.ts` with `environment.prod.ts`. // The list of file replacements can be found in `angular.json`. export const environment = {