Can we package all data and source code in one HTML5?

Do we have any feature for a package of all data and scripts to one HTML file? Too many Ad networks don’t allow us to load any file from the server, so I think if we have this feature, Cocos Creator can be the best tool to make playable ads

You can do it in single file i think if you dont’ use any images and use draw nodes to draw the images.
You can try to embed images as base64 values in the html file itself / in your scripts. I don’t think it makes sense for the engine to do it for you.

1 Like

I saw other people do it here. But it only supports 2.x.x. It read and convert all assets to base64 then custom the cocos loader to load it. I think we can do the same with cocos 3.x.x but official support is better than do the hacks.