From 7ed5dba53d651b5016c4fc504915e9a54af6f59a Mon Sep 17 00:00:00 2001 From: bellingson Date: Wed, 22 Jun 2016 21:22:48 -0400 Subject: [PATCH] docs: add docs about how to change the build directory It's often helpful to change the build directory from dist/ to another location. For example, if you are integrating angular within an existing web application an easy deployment method is to just change the dist/ folder to a build directory within the parent application. --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 38914313a5f1..c6e84cb44aee 100644 --- a/README.md +++ b/README.md @@ -128,6 +128,14 @@ ng build The build artifacts will be stored in the `dist/` directory. +You can change the build directory by including --output-path=/not-dist flag with the build command or by creating a .ember-cli file in the project root directory with `output-path` value. This is an easy way to integrate angular in an existing web application. + +```bash +{ + "output-path": "../../../../build/webapp/myapp" +} +``` + ### Environments At build time, the `src/client/app/environment.ts` will be replaced by either