mendix / pluggable-widgets-tools

Moved to widget resources:
https://github.com/mendix/widgets-resources/
Apache License 2.0
8 stars 5 forks source link

Reusing package between widgets #5

Closed vietduc1441 closed 5 years ago

vietduc1441 commented 5 years ago

Very often, we have widgets which reuse components. For example, widget A and B import same package C. With webpack, we bundle everything so A will have C and B will also have C. But i wonder if it is possible to split so that we can only load C one time. If yes, is it possible to add this feature to the boiler-plate?

diego-antonelli commented 5 years ago

Unfortunately we don't support multiples widgets per packages at the moment. You can try to extend the webpack config as we documented in the README, or when you have a good solution open a PR.