Bring Drag & Drop to Dash with Dashboard Engine. 💫 Learn how at our next webinar!

How to include javascript files with imports?

I need to include a few javascript files with import statements. Ideally, i would just put them in the assets folder. However, this does not work when import statements are present, as the files must be loaded as modules. I know i can just do that manually by adding a new script element with type=module in the index_string of the app, but i was wondering if there is a simpler solution? :slight_smile:

Hm that’s a good question. I don’t think that there is any way to do this right now “automatically” via the assets folder. Overriding the index is probably your best bet.