I hope to have a smaller export size, I compile export template, but got a larger size

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By qianchen

I refer to this tutorial

I used SCons Emscripten,this command

scons platform=web target=template_release tools=no optimize=size use_lto=yes disable_3d=yes disable_advanced_gui=yes debug_symbols=no javascript_eval=no

I compiled this,26.7 MB

Official,28.2 MB

I don’t know what I did wrong or omitted

I checked the official export template,found two web templates
web_release and web_dlink_release
There are two wasm files in web_dlink_release, and the sizes of these two files are very similar to the file size obtained by compiling directly using the simplest command ‘scons platform=web target=template_release tools=no’. Is there any connection between them?

Liên hệ:
Địa chỉ: 160 Võ Văn Kiệt,Phường Cầu Ông Lãnh,Quận 1,Thành phố Hồ Chí Minh
Website: https://chuyennhuong.org
Email: info.chuyennnhuong@gmail.com
Cập nhật thông tin chuyển nhượng cầu thủ liên tục 24h.tin tức hợp đồng chuyển nhượng cầu thủ.Thông tin chính xác và uy tín nhất hiện nay.
https://chuyennhuong.org
https://www.youtube.com/@CHUYENNHUONG922/
https://twitter.com/TINCHUYENN55691
About Tin chuyennhuong | Flickr
https://www.pinterest.com/infochuyennhuong/
Twitch
https://danhconnao.com/
https://doxoso.net/
https://doxoso365.org/
https://giaimongconso.com/
https://lobachthu.net/

chuyennhuong | 2023-06-14 10:28