0.0.1-alpha.1 • Published 9 years ago
@ngpack/hmr v0.0.1-alpha.1
extends ngpack-based webpack configuration with HMR
Installation
npm i -D @ngpack/hmrUsage
- Add
@ngpack/hmrto your config viangpack#add From your root app module's constructor, require
@ngpack/hmrand callenable, passing it the instance of the module and the application ref:```ts import { NgModule, ApplicationRef } from '@angular/core'; @NgModule({ ... }) export class AppModule { constructor(appRef: ApplicationRef) { require('@ngpack/hmr').enable(this, appRef); } } ```
0.0.1-alpha.1
9 years ago