From a02eda592371a59fc17cec523fdf73c55c6ee2c5 Mon Sep 17 00:00:00 2001 From: Alan Date: Fri, 26 Oct 2018 06:49:27 +0200 Subject: [PATCH] docs: fix code examples style (#26573) PR Close #26573 --- aio/content/guide/build.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/aio/content/guide/build.md b/aio/content/guide/build.md index 7fad196614..44b2430084 100644 --- a/aio/content/guide/build.md +++ b/aio/content/guide/build.md @@ -32,11 +32,11 @@ For example: The base file `environment.ts`, contains the default environment settings. For example: - +``` export const environment = { production: false }; - +``` The `build` command uses this as the build target when no environment is specified. You can add further variables, either as additional properties on the environment object, or as separate objects. @@ -144,7 +144,11 @@ You can add additional configurations as required. To add a staging environment, You can add more configuration options to this target environment as well. Any option that your build supports can be overridden in a build target configuration. -To build using the staging configuration, run `ng build --configuration=staging`. +To build using the staging configuration, run the following command: + + + ng build --configuration=staging + You can also configure the `serve` command to use the targeted build configuration if you add it to the "serve:configurations" section of `angular.json`: