Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nativescript/ng-ns-hmr


https://github.com/nativescript/ng-ns-hmr

angular hot-module-replacement nativescript nativescript-angular webpack

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

        

# Important!

The HMR feature is still in beta.
The API may change.

For detailed information, please refer to:
- NativeScript 5.2 HMR with Angular wiki [page](https://github.com/NativeScript/nativescript-angular/wiki/NativeScript-5.2-HMR-with-Angular)
- HMR tracking [issue](https://github.com/NativeScript/NativeScript/issues/6398)
- HMR design [document](https://goo.gl/NkYXga)

## Enable HMR

1. Install the NativeScript CLI.

```
npm install -g nativescript
```

2. Install the node dependencies.
```
npm install
```

3. Run with the `hmr` flag:
```
tns run --hmr
```

or, if you don't have local setup, use:
```
tns preview --hmr
```