ama
ama copied to clipboard
Can I update a chunk file in my production dist folder?
Hi Sean! We're looking for a solution for having multiple angular2 apps in one browser, can we solve it with webpack? We have our Main App which is just a nav bar, and we want it to load webpack's chunk on demands. We first compile our MainApp with dummy apps inside it, to get the chunks referenses. Next, we're planning to upgrade only a specific chunk at a time.
It seem to work for minor changes (adding new components). Does Webpack officially support replacing chunks in run time?
Note:
- The entry module for each chunk stays exactly the same
- It's a new project, we can use the latest version of webpack.