Skip to content

Commit 303dfa9

Browse files
committed
Added TOC. Minor tweak to @MirrorsUsed section.
1 parent fab9403 commit 303dfa9

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

Chapter_07/README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
Chapter 7: Production Deployment
22
==========================
33

4+
- [Running the Sample App](#running-the-sample-app)
5+
- [Overview](#overview)
6+
- [Managing Compiled Code Size](#managing-compiled-code-size)
7+
- [Minification](#minification)
8+
- [@MirrorsUsed](#mirrorsused)
9+
- [Debugging](#debugging)
10+
- [Optimizing Runtime Performance](#optimizing-runtime-performance)
11+
- [di Code Generator](#di-code-generator)
12+
- [Discovering Instantiable Types](#discovering-instantiable-types)
13+
- [AngularDart Parser Generator](#angulardart-parser-generator)
14+
- [Code Generators and Development Mode](#code-generators-and-development-mode)
15+
- [Cross-browser Support](#cross-browser-support)
16+
-
17+
418
# Running the Sample App
519

620
Before running the app, make sure you run the code generators (see below for
@@ -98,12 +112,16 @@ libraries, as well as on ```NodeTreeSanitizer``` class, and annotations
98112

99113
### Debugging
100114

101-
If it happens that you have misconfigured ```@MirrorsUsed```, you will likely
115+
If it happens that you have misconfigured `@MirrorsUsed`, you will likely
102116
be seeing errors like "Cannot find class for: Foo" or your
103117
directives/components/controllers will be ignored when running in JavaScript.
104118
Usually, the easiest fix is to just add that class (or the whole library)
105119
to ```@MirrorsUsed.targets```.
106120

121+
It's much easier to debug `@MirrorsUsed` while working with unminified
122+
dart2js output, as you'll be able to see unminified class/field names and
123+
be able to much easier identify what is missing.
124+
107125

108126
# Optimizing Runtime Performance
109127

0 commit comments

Comments
 (0)