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