Hot Module Replacement (HMR) for Angular CLI v6
Enabling Hot Module Replacement (HMR) feature in your Angular CLI v6 project by using Angular Schematics.
Usage
To enable HMR feature in your Angular CLI v6 project, just enter the following command:
ng add hmr-enabled
Developments & Tests
git clone https://github.com/doggy8088/ngcli-hmr-enabled.gitcd ngcli-hmr-enablednpm installnpm run link cd ..ng new demo1cd demo1schematics hmr-enabled:ng-add --dry-runschematics hmr-enabled:ng-add npm unlink
Unit Testing
There is no bandwidth for unit testing at this time.
npm run test
will run the unit tests, using Jasmine as a runner and test framework.