ng-hot-reload
ng-hot-reload copied to clipboard
What about chunks?
HMR plugin works well, but doesn't work for files that were loaded in lazyload - chunks.
Is there any fix for this?
Thanks!
What are you using to lazy load files? Webpack + ocLazyLoad? I can take a look at this but a repo with reproducible example would help a lot.
@Taxi4you, if you run into an issue with dynamic module import (https://webpack.js.org/api/module-methods/#import-1) try optimization.runtimeChunk = 'single'
as suggested here https://github.com/webpack/webpack/issues/7829 - worked for me like a charm.
What are you using to lazy load files? Webpack + ocLazyLoad? I can take a look at this but a repo with reproducible example would help a lot.
I'm using $injector.loadNewModules
(https://docs.angularjs.org/api/auto/service/$injector#loadNewModules), in case you happen to still be interested in this project.