From ef9ad56bbc6d899dc67c306192941a90a3dc072e Mon Sep 17 00:00:00 2001 From: Filipe Silva Date: Tue, 21 Jun 2016 05:19:48 +0100 Subject: [PATCH] chore(readme): add section about bundling Getting kinda tired of people asking this all the time. Turns out I never mentioned it in the readme. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 7fb9e7f58cb6..4d276a6db258 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ The generated project has dependencies that require **Node 4 or greater**. * [Generating a Route](#generating-a-route) * [Creating a Build](#creating-a-build) * [Environments](#environments) +* [Bundling](#bundling) * [Running Unit Tests](#running-unit-tests) * [Running End-to-End Tests](#running-end-to-end-tests) * [Deploying the App via GitHub Pages](#deploying-the-app-via-github-pages) @@ -140,6 +141,11 @@ You can also add your own env files other than `dev` and `prod` by creating a `src/client/app/environment.{NAME}.ts` and use them by using the `--env=NAME` flag on the build/serve commands. +### Bundling + +Builds created with the `-prod` flag via `ng build -prod` or `ng serve -prod` bundle +all dependencies into a single file, and make use of tree-shaking techniques. + ### Running unit tests ```bash