libvarun / forge-extensions

Autodesk Forge Viewer Extensions with loose coupling, so that it's easy to plug and play in other projects.
https://forge-extensions.autodesk.io/
4 stars 4 forks source link

Consider supporting external dependencies #20

Open petrbroz opened 4 years ago

petrbroz commented 4 years ago

It seems that the filestoload assets in config.json can only be local (relative to the contents subfolder). It might be a good idea to support external dependencies as well, so that, for example, instead of including the same xlsx.min.min.js into every single extension that needs to generate an Excel file, we could just reference it from a CDN, for example: https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.15.2/xlsx.core.min.js.

libvarun commented 4 years ago

we're leaving dependency management to user, i believe we should write that clearly as a note. in each extension config external dependencies may be duplicated, because that information is just to mention this extension depends on these external dependencies.