lmeijdam / angular-umd-dynamic-example

Angular UMD example of loading new modules dynamically
174 stars 57 forks source link

module definitions in angular.json #6

Closed yvz5 closed 5 years ago

yvz5 commented 5 years ago

i found module definitions in the angular.json file. isnt this against the idea of a plugin system ? if these modules are unknown at compile time, how does it help to put modules there ?

image

LeoLetourneur commented 5 years ago

This is just some configs to build UMD modules. To build a module, you need an "angular app", so instead of using a second app, you can build directly in your main app. But your main app will not include these modules in the build.

If someone else create a new module without your main app, he will have to create a new "app" just for building the new module.

yvz5 commented 5 years ago

ok got it thanks.