Add wasm-opt to index.html
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Isaac Mills 2024-03-18 18:54:12 -04:00
parent 91dd6337bc
commit ca6efa3600
Signed by: fnmain
GPG key ID: B67D7410F33A0F61
2 changed files with 1 additions and 2 deletions

View file

@ -10,7 +10,7 @@
<title>Isaac Mills's Portfolio</title>
<!-- config for our rust wasm binary. go to https://trunkrs.dev/assets/#rust for more customization -->
<link data-trunk rel="rust" data-wasm-opt="0" />
<link data-trunk rel="rust" data-wasm-opt="2" />
<!-- this is the base url relative to which other urls will be constructed. trunk will insert this from the public-url option -->
<base data-trunk-public-url />

1
opt.sh
View file

@ -1,7 +1,6 @@
#!/bin/sh
wasm=dist/portfolio-*_bg.wasm
js=dist/portfolio-*.js
wasm-opt -O2 --fast-math $wasm -o $wasm
find dist/ \
-name "*.js" -o \
-name "*.pdf" -o \