mirror of
https://github.com/yewprint/yewprint
synced 2024-11-22 03:23:03 +00:00
Display wasm size and enable LTO for release build
This commit is contained in:
parent
f5bc807ec2
commit
974d2d5f63
2 changed files with 5 additions and 0 deletions
|
@ -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" }
|
||||
|
|
2
build.sh
2
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
|
||||
|
|
Loading…
Reference in a new issue