mirror of
https://github.com/yewprint/yewprint
synced 2024-11-25 13:00:19 +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]
|
[lib]
|
||||||
crate-type = ["cdylib"]
|
crate-type = ["cdylib"]
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
lto = true
|
||||||
|
|
||||||
[badges]
|
[badges]
|
||||||
travis-ci = { repository = "cecton/yewprint", branch = "main" }
|
travis-ci = { repository = "cecton/yewprint", branch = "main" }
|
||||||
is-it-maintained-issue-resolution = { repository = "cecton/yewprint" }
|
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}
|
rm -fR public/{.gitignore,package.json,README.md}
|
||||||
|
|
||||||
|
echo Wasm size: $(cat public/*.wasm | wc -c)
|
||||||
|
|
||||||
exit $rc
|
exit $rc
|
||||||
|
|
Loading…
Reference in a new issue