curiosity-ai / h5

🚀 The next generation C# to JavaScript compiler
https://github.com/curiosity-ai/h5
Apache License 2.0
210 stars 30 forks source link

Embedded Resources in H5? #83

Open Riccsson opened 1 year ago

Riccsson commented 1 year ago

When I used Bridge.NET, in a shared project, some resource files has "Build Actions" as "Embedded Resuorces" and I could load it into a stream.

In H5 with same settings, I can not load it into a stream, there is no resources found. Is there some settings I have missed?

In Meta.js files in Bridge.net it looks like this: Bridge.assembly("SharedProjectBridge", {"SharedProjectBridge.Resources.Fonts.char_0.sfont":"BVNG...

But in H5 Meta.js, there is no embedded json data at all:

H5.assemblyVersion("SharedProjectH5","1.0.0.0");
H5.assembly("SharedProjectH5", function ($asm, globals) {