This is an interesting article and one that got me thinking! Will your solution allow each micro app to run against its own version of Angular so one could be on version 8.1 and another on 8.2?
I noticed your bundle concatenation script didn’t reference the script.js bundle, how will your solution deal with third party scripts from this bundle?
Your compiled version test-one.js is added to the containers asset folder, have you considered hosting the micro app separately to decouple the relationship as if the micro app changes you have to redeploy the container?
It is recommended keeping all the micro-apps in the same version. Having said that I have not experienced anything breaking while using a micro-app with Angular version 8.1 along with another micro-app with Angular version 8.2.
Any external script which is common across all the micro-apps can be externalized using extra-webpack.config.js. Any other micro-app specific script needs to be bundled along with the micro-app.
The compiled version of the micro-app can be hosted in any external systems or cdns. Here for simplicity, I have kept the scripts inside the assets folder.
Hope my answers help. Let me know if you need any other clarification.
Thanks
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Pranesh.
This is an interesting article and one that got me thinking! Will your solution allow each micro app to run against its own version of Angular so one could be on version 8.1 and another on 8.2?
I noticed your bundle concatenation script didn’t reference the script.js bundle, how will your solution deal with third party scripts from this bundle?
Your compiled version test-one.js is added to the containers asset folder, have you considered hosting the micro app separately to decouple the relationship as if the micro app changes you have to redeploy the container?
Thanks.
Hi Graham
Thank you for going through the article.
It is recommended keeping all the micro-apps in the same version. Having said that I have not experienced anything breaking while using a micro-app with Angular version 8.1 along with another micro-app with Angular version 8.2.
Any external script which is common across all the micro-apps can be externalized using extra-webpack.config.js. Any other micro-app specific script needs to be bundled along with the micro-app.
The compiled version of the micro-app can be hosted in any external systems or cdns. Here for simplicity, I have kept the scripts inside the assets folder.
Hope my answers help. Let me know if you need any other clarification.
Thanks