From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 3 Jan 2023 16:17:12 +0000 (-0800) Subject: Updated build instructions to remove --prod X-Git-Tag: v1.12.0-beta.rc0~1^2~13^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2334%2Fhead;p=thirdparty%2Fpaperless-ngx.git Updated build instructions to remove --prod --- diff --git a/docs/development.md b/docs/development.md index d36cd12ed2..7515406f46 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 568ba0874e..0eb3799564 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 4386bef1ef..b4af67c258 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 = {