3

We have a big angular application containing 1000 modules. While deploying application we have to deploy the whole app from dist this approach is not good for any large application.
Is there any way to build a specified module from application and deploy it separately. Like we have CM and PM separate two modules now I want to build CM and deploy it's generated stuff on the server.
we use bazel to build separate module but deployment is very hard with @bazel.

1 Answers1

1

I was looking for the same solution and was heard about micro frontend where we can deploy each module independently. I found this medium article.

https://medium.com/bb-tutorials-and-thoughts/how-to-implement-micro-frontend-architecture-with-angular-e6828a0a049c

And you can check this Nx freamwork as well. https://nx.dev/getting-started/angular-standalone-tutorial.

https://nx.dev/recipes/adopting-nx/migration-angular#transforming-an-angular-cli-workspace-to-an-nx-workspace

Hope this helps :) And if you already got something better than this, please let me know as well :)