I am trying to write a custom export script, but haven't been able to figure this out from the documentation or by looking at other export scripts. If the User has selected CDN option for serving Hype JS, how can the export script know about it.
I can see that this is causing a bug in the current OrganizedAssets export script as well. If I try to export a scene using OrganizedAssets with CDN selected, then the exported bundle does not load. It ends up referencing
/js in the URL)
This is because it does not check when rewriting the path for Hype JS, whether the user has selected CDN or not, and thus appends /js to that path as well.