We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2e22b2 commit 661effcCopy full SHA for 661effc
docs/documentation/stories/configure-hmr.md
@@ -55,18 +55,20 @@ Update `.angular-cli.json` by adding the new environment the existing environmen
55
Run `ng serve` with the flag `--hmr -e=hmr` to enable hmr and select the new environment:
56
57
```bash
58
-ng serve --hmr -e=hmr
+ng serve --hmr -e=hmr --no-aot
59
```
60
61
Create a shortcut for this by updating `package.json` and adding an entry to the script object:
62
63
```json
64
"scripts": {
65
...
66
- "hmr": "ng serve --hmr -e=hmr"
+ "hmr": "ng serve --hmr -e=hmr --no-aot"
67
}
68
69
70
+Note: you cannot use HMR when AOT is turned on, so you must force it off with `--no-aot`.
71
+
72
73
### Add dependency for @angularclass/hmr and configure app
74
0 commit comments