Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML export is of very large size #16

Open
surendra019 opened this issue Nov 6, 2023 · 4 comments
Open

HTML export is of very large size #16

surendra019 opened this issue Nov 6, 2023 · 4 comments

Comments

@surendra019
Copy link

I exported my project on HTML5 export and it works but the export size is about 180 mb, the size is caused because of the .wasm file of the export template which is that much large. the .wasm file in the normal export template is of about 17mb. any solution?

@jkb0o
Copy link
Contributor

jkb0o commented Nov 21, 2023

Did you compile wasm template with some release flag, like target=release?

@jkb0o
Copy link
Contributor

jkb0o commented Nov 21, 2023

In the instruction from #14 there is the line:

scons platform=javascript target=debug javascript_eval=no

The debug builds (target=debug) produces the huge binaries. Replace it with target=release and you should be fine.

@surendra019
Copy link
Author

surendra019 commented Nov 22, 2023

that issue is solved now a new issue is encountering, the console gives this error. This is only encountered when I make export templates after integrating flash. without flash it works fine. please help. I used Godot's v3.5.3, same issue is encountering in v3.4.5, 3.3.4. I also used v3.3.1, but in that when I try to generate export templates for release it throw a set of errors in the browser's console. Please share me the templates generated by you of v3.5.3 . This issue is encountering in every build of web export templates.

I use command scons p=javascritpt target=release tools=no for templates

Screenshot 2023-11-21 161454

@surendra019
Copy link
Author

please reply sir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants