Skip to content

Commit e5180a4

Browse files
authored
chore(readme): add section about bundling (angular#1153)
Getting kinda tired of people asking this all the time. Turns out I never mentioned it in the readme.
1 parent 4b638c8 commit e5180a4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ The generated project has dependencies that require **Node 4 or greater**.
2929
* [Generating a Route](#generating-a-route)
3030
* [Creating a Build](#creating-a-build)
3131
* [Environments](#environments)
32+
* [Bundling](#bundling)
3233
* [Running Unit Tests](#running-unit-tests)
3334
* [Running End-to-End Tests](#running-end-to-end-tests)
3435
* [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
140141
`src/client/app/environment.{NAME}.ts` and use them by using the `--env=NAME`
141142
flag on the build/serve commands.
142143

144+
### Bundling
145+
146+
Builds created with the `-prod` flag via `ng build -prod` or `ng serve -prod` bundle
147+
all dependencies into a single file, and make use of tree-shaking techniques.
148+
143149
### Running unit tests
144150

145151
```bash

0 commit comments

Comments
 (0)