Loading module was blocked because of a disallowed MIME type

While debugging this, I found a directory structure that works for both local debug mode and Pavlovia, with output path = html:

|-- conditions.xlsx
|-- html
|   |-- index.html
|   |-- IVA_V1.js
|   |-- IVA_V1-legacy-browsers.js
|   `-- resources
|       |-- conditions.xlsx
|       `-- resources
|           |-- *.png
|-- IVA_V1.psyexp
`-- resources
    |-- *.png

This setup requires images placed in /resources/*.png, and conditions.xlsx referring to them as resources/*.png. Any other combination (/*.png, /images/*.png, /html/resources/*.png, /html/resources/images/*.png, etc) does not work for both run modes. Export HTML copies the images to /html/resources/resources/*.png, and this seems to work.

1 Like