Skip to content

Commit

Permalink
docs: add HMR no AOT note
Browse files Browse the repository at this point in the history
Partially address angular#8234
  • Loading branch information
filipesilva committed Oct 28, 2017
1 parent d2e22b2 commit 661effc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/documentation/stories/configure-hmr.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,20 @@ Update `.angular-cli.json` by adding the new environment the existing environmen
Run `ng serve` with the flag `--hmr -e=hmr` to enable hmr and select the new environment:

```bash
ng serve --hmr -e=hmr
ng serve --hmr -e=hmr --no-aot
```

Create a shortcut for this by updating `package.json` and adding an entry to the script object:

```json
"scripts": {
...
"hmr": "ng serve --hmr -e=hmr"
"hmr": "ng serve --hmr -e=hmr --no-aot"
}
```

Note: you cannot use HMR when AOT is turned on, so you must force it off with `--no-aot`.


### Add dependency for @angularclass/hmr and configure app

Expand Down

0 comments on commit 661effc

Please sign in to comment.