In Angular 12, I have 3 projects and library in one namespace.
-projects: --library --project1 --project2 --project3
Each of them is build to separate destination (domains).
Whne build to production, vendor.js is almost the same for each project. When compared I see that only differences are letters for function parameters or their order:
Also the files names (hash tags) are different.
I'm wondering if there is a way to have build script creating one (same) vendor.js files for each project. This way user would download only one vendor.js when navigating between sites.
Or maybe I can put vendor.js in one project (domain) and link to other 2 sites from there?