I have a almost same issue now.
Are there no other way to solve ?
I can import jQuery.js by adding The SCRIPT tag to downloaded index.html.
But other issue are there.
I make my games publish to an Japanese platform.
They connect to the platform API. and they procedure the function “user login” and “show ad”…etc.
Sorry for the late reply @ogawa, I’ve been quite busy lately. It seems you have come to a solution as recommended by @dave.
Another solution is to download the project, edit the main HTML to include your scripts and host the project from your own server. But this process doesn’t really support using the fine editor on playcanvas efficiently.
@dave: What if we could include external scripts in the project settings, you could only allow other domains as the source - this would also lower the space required on the servers.
External scripts lead to many challenges and complexities.
For example we need to parse actual script, to identify what playcanvas script objects it contains and parse their attributes, so we can show attributes in Editor UI.
Then those urls have to be reliable, and lets say today someone have scripts on some external server, and then he removed or change url of it, then what - your app wont simply work.
To avoid that - we would need to download those scripts during publishing? But that creates challenges, especially with SSL and the fact it still can be unreliable.
So many failure options here, and no benefits pretty much, especially when you can do everything you need by simply uploading that script.