manfredsteyer / angular-elements-dashboard

Dynamic Dashboard with Angular Elements and Web Components
https://www.softwarearchitekt.at
194 stars 94 forks source link

external-dashboard-tile no longer working after upgrade to ng7 #4

Open YodaNinja opened 5 years ago

YodaNinja commented 5 years ago

After upgrade to ng7 the external-dashboard-tile, no longer is visible when added. Do you have an idea what the issue is? I'd like to use the latest version of ngx-build-plus, and need the use case of loading the custom element in the same way the external-dashboard-tile is loaded in this example.

YodaNinja commented 5 years ago

Hmm.. I updated the ngx-build-plus version, and had added --extra-webpack-config to exclude angular packages. I removed the --extra-webpack-config, and it started working again. I'm guessing excluding packages cannot be used for external-dashboard-tile, which is loaded dynamically in this app. Unfortunately this creates a larger external-dashboard-tile.js file, which is undesired.

bobbymthompson commented 5 years ago

You need to update the package.json file to output a single bundle when it builds the external-dashboard-tile

"bundle:ce": "ng build --project external-dashboard-tile --prod --output-hashing none --single-bundle true"