Angular Ionic - App Build for specific route

I have an Angular app that I’d like to transform into an app.
This app has two different parts: One for admin and another one for our customers.
Is it possible to bundle only the customer part?
They are on different routes and modules but have a shared module in common.

One option, when your app is angular is to setup shared library
https://angular.io/guide/creating-libraries

While it may not seem the direct answer I think it is one of the cleanest

Automátic splitting seems to me a difficult one and buggy option

2 Likes

Thanks @Tommertom
I read a bit and I will create an Angular Workspace using Nx.
I will separate these routes into different applications but using a monorepo architecture.