diff --git a/Cargo.toml b/Cargo.toml index 9ae1d96..9c1c870 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,6 +9,9 @@ edition = "2018" [lib] crate-type = ["cdylib"] +[profile.release] +lto = true + [badges] travis-ci = { repository = "cecton/yewprint", branch = "main" } is-it-maintained-issue-resolution = { repository = "cecton/yewprint" } diff --git a/build.sh b/build.sh index 685956e..19134cd 100755 --- a/build.sh +++ b/build.sh @@ -29,4 +29,6 @@ rc=$? rm -fR public/{.gitignore,package.json,README.md} +echo Wasm size: $(cat public/*.wasm | wc -c) + exit $rc