Hi, I have a complex problem, so I hope I can explain it properly. We have an application with tons of JS files on front-end. We’d like to create a Mendix custom widget to replicate one of our app’s functionalities. For this I followed a tutorial, which is not available anymore, but it used dojo. In the end I could achieve the goal by copying all the required JS files into a lib folder while maintaining their original structure (2000+ files). This lib folder can be found in the widget, so after build, the mpk contains it. However all the <script> tags are placed in the index.html of the Mendix app. It’s a mess. Now we’d like to isolate all the dependencies in the widget itself and we thought it’d be nice to use React which I am completely new to. So now I want to create a new widget with the same behavior, but with React and I can’t figure it out where to place my lib folder and how to import the required JS files from it. I’ve followed this tutorial: https://docs.mendix.com/howto/extensibility/create-a-pluggable-widget-one Also I can’t use TypeScript. Does anyone know how to include these resources into my new widget? Thanks
↧