mirror of
https://github.com/bevyengine/bevy
synced 2024-11-14 00:47:32 +00:00
e944b0a3a5
# Objective - Improve speed of loading examples on the website - Triggered by https://news.ycombinator.com/item?id=35996393 ## Solution - Use wasm-opt to optimize files for size. This reduces the files from 22mb to 13mb - Cloudflare doesn't set the correct `Content-Type` header by default for wasm files, add it manually. This enables wasm streaming and compression, dropping the transfer to 3.9mb The files with this script are deployed on optimized.wasm-pages.pages.dev if you want to test, you can replace this URL on a website deployed locally.
14 lines
270 B
TOML
14 lines
270 B
TOML
[package]
|
|
name = "example-showcase"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "Run examples"
|
|
publish = false
|
|
license = "MIT OR Apache-2.0"
|
|
|
|
[dependencies]
|
|
xshell = "0.2"
|
|
clap = { version = "4.0", features = ["derive"] }
|
|
ron = "0.8"
|
|
toml_edit = "0.19"
|
|
pbr = "1.1"
|