Angular CLI HMR

Angular CLI finally supports HMR starting 1.0.0-beta.22. But to enable it needs app changes:https://github.com/angular/angular-cli/blob/master/CHANGELOG.md

 

NOTICE Hot Module Replacement (HMR) is enabled for the dev server.
The project will still live reload when HMR is enabled,
but to take advantage of HMR additional application code is required
(not included in an angular-cli project by default).
See https://webpack.github.io/docs/hot-module-replacement.html
for information on working with HMR for Webpack.

Here’s a working example with these changes: https://github.com/jschwarty/angularcli-hmr-example 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s