I’m needing help to find the right way to upload a bundled React app as a zipped filed to the Twitch Extensions dashboard. After running
npm run build and getting the minified files, I compressed the collection of files (not the parent folder that holds all the files). A small note to make is that, yes, there are folders (the generated js, css and media folders) but the index.html file is at the root level. Not sure if that is an issue — if it is, perhaps it’s worth noting in the documentation.
Uploading that to the dashboard will display an empty extension similar to this case but in my case there is actually some dimensions to the box, such that it’s an empty white box.
Looking at the console, I see this error:
Refused to apply style from 'https://[my-base-uri].ext-twitch.tv/static/css/main.64c5b6d4.css' because its MIME type ('text/plain') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
Could it be because the CSS file is not at the same level but nested?
Other things I’ve tried:
- I have tried to test using the offered extension boilerplate, but that seems to be in a broken state right now.
- I used the Developer Rig’s “Run Frontend” feature with the same files and it displays properly there.
Any help is much appreciated