angular configure hot reload / live reload for speed
Asked Answered
O

1

11

I'm using Angular 5.

The hot reload takes about 8 secs which is reasonable (not great though) but is there any way to configure it so I can tweak it to make it faster?

Concerned it will get even slower as the app grows. Thanks.

Overcharge answered 9/6, 2018 at 2:28 Comment(0)
R
8

Try to compile with Ahead-of-Time option

Angular Doc: With AOT, the browser downloads a pre-compiled version of the application. The browser loads executable code so it can render the application immediately, without waiting to compile the app first.

Railhead answered 9/6, 2018 at 3:7 Comment(1)
Using aot increased the hot reload time in my case. ng serve --aotSkerrick

© 2022 - 2024 — McMap. All rights reserved.