Add wasm-opt to index.html
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
91dd6337bc
commit
ca6efa3600
2 changed files with 1 additions and 2 deletions
|
@ -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
1
opt.sh
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue