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

Reduce wasm size #421

Open
otabekgb opened this issue Jan 22, 2023 · 1 comment
Open

Reduce wasm size #421

otabekgb opened this issue Jan 22, 2023 · 1 comment

Comments

@otabekgb
Copy link

How can I reduce the size of generated wasm file? For example when I don't need complete features, say only 2d stuff.
Current wasm in examples folder generates wasm size of 5.1 MB.
image

@mrDIMAS
Copy link
Member

mrDIMAS commented Jan 22, 2023

Is this already optimized with wasm-pack (wasm-pack build --target web --release)? If so, then the answer is - no, not yet. There's no way to exclude some of the engine features from builds yet.

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