0.0.1-alpha.1 • Published 8 years ago
@ngpack/hmr v0.0.1-alpha.1
extends ngpack-based webpack configuration with HMR
Installation
npm i -D @ngpack/hmr
Usage
- Add
@ngpack/hmr
to your config viangpack#add
From your root app module's constructor, require
@ngpack/hmr
and 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
8 years ago