|
1 | 1 | Chapter 7: Production Deployment |
2 | 2 | ========================== |
3 | 3 |
|
| 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 | + |
4 | 18 | # Running the Sample App |
5 | 19 |
|
6 | 20 | 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 |
98 | 112 |
|
99 | 113 | ### Debugging |
100 | 114 |
|
101 | | -If it happens that you have misconfigured ```@MirrorsUsed```, you will likely |
| 115 | +If it happens that you have misconfigured `@MirrorsUsed`, you will likely |
102 | 116 | be seeing errors like "Cannot find class for: Foo" or your |
103 | 117 | directives/components/controllers will be ignored when running in JavaScript. |
104 | 118 | Usually, the easiest fix is to just add that class (or the whole library) |
105 | 119 | to ```@MirrorsUsed.targets```. |
106 | 120 |
|
| 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 | + |
107 | 125 |
|
108 | 126 | # Optimizing Runtime Performance |
109 | 127 |
|
|
0 commit comments